[logback-user] Date instead of timestamp in dbappender

Greg Thomas greg.d.thomas at gmail.com
Thu Nov 3 17:31:58 CET 2011

On 3 November 2011 16:20, Jordan Blay <be.special at gmail.com> wrote:
> Is there a way in dbappender, that timestamp field in logging_event will be a
> real date instead of int?

No. Different databases support different forms of a time stamp with
different granularity, so the only reliably portable way to do it is
with an int; you'll need to use a database specific function to turn
in to you database specific timestamp - e.g. FROM_UNIXTIME on MySQL
(from memory - please check!).


More information about the Logback-user mailing list