How to override log_time format of DbTarget (logging)

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

Looks like you have to create a child class, as there is no direct hook/variable to change.

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!