gvanto
(Gvanto)
1
I’d like to use MySQL DateTime format for storing log_time column in log table
(kind of agreeing with mike here: https://github.com/yiisoft/yii2/issues/7384#issuecomment-75506396 )
Is there a hook to override the format where the DbTarget ( http://www.yiiframework.com/doc-2.0/yii-log-dbtarget.html ) writes this value or should I create a child class and override some method?
Thanks for help,
gvanto
amnah
(Jellysandwich5+1)
2
Looks like you have to create a child class, as there is no direct hook/variable to change.
gvanto
(Gvanto)
3
Cool thanks amnah, yeah I’ll look into this.
I don’t need micro-precision log timing - no yet anyway - so prefer easily-readable timestamp values!