mlog icon indicating copy to clipboard operation
mlog copied to clipboard

how to change outLine format

Open spritecn opened this issue 4 years ago • 1 comments

how to change out format:

I: 2019/07/13 22:51:08 log.go:12: ---start-----

i want change it to

2019/07/13 22:51:08 [INFO]  log.go:12: ---start-----

like webServer log

spritecn avatar Jul 13 '19 14:07 spritecn

That can't be customized currently.

You can play around with mlog.DefaultFlags, which can be customized via standard go/log flags.

Other than that, I guess it would need code change.

jbrodriguez avatar Jul 13 '19 17:07 jbrodriguez