Print log in GMT ?

99 views
Skip to first unread message

Brian Simmons

unread,
Jun 17, 2015, 4:20:11 PM6/17/15
to cocoalu...@googlegroups.com
My device is EST, and the CocoaLumberJack (CLJ) log prints each starting line's timestamp in EST.
I see there's a variable called _timestamp in DDLog.m, which grabs an NSDate in GMT.
But when the log is printed it seems to convert it to EST (or whatever the device's local timezone is).

Is there a (an easy) way to get the timestamp printed at the starting line of the log to be GMT (no timezone offsetting).

Thanks,
Brian

Dmitry Vorobyov

unread,
Jun 17, 2015, 4:31:25 PM6/17/15
to cocoalu...@googlegroups.com
Hello Brian,

You can create your custom log formatter and format log message whatever
you like.

See
https://github.com/CocoaLumberjack/CocoaLumberjack/blob/master/Documentation/CustomFormatters.md

Dmytro

17.06.15 22:20, Brian Simmons пишет:
Reply all
Reply to author
Forward
0 new messages