How to print seconds from epoch in log4j log

I have a transform template in my log4j config. I know how to print it in% d {ISO8601} ... but if I want it in seconds from the epoch (1/1/1970), which format?

+3


source to share


1 answer


As per the accepted answer to log4j's question : current time in milliseconds , log4j does not provide a way to do this.



+1


source







All Articles