I am referring to 

https://github.com/akka/akka/issues/18079

We need to have date and time as part of {akkaTimestamp}

We are using 2.3.12 and using Akka with Java. 

I have added this class (in Java)

public class AkkaTimestampWithDateLogger extends Slf4jLogger {


   protected String formatTimeStamp(long timestamp) {

     return OffsetDateTime.ofInstant(Instant.ofEpochMilli(timestamp), 
ZoneOffset.UTC).toString();

   }


}


and added 

akka {

...

  loggers = ["AkkaTimestampWithDateLogger"]

  loglevel = "DEBUG"

  stdout-loglevel = "INFO"

  logging-filter = "akka.event.slf4j.Slf4jLoggingFilter"

}


I do see this message


[]  INFO  AkkaTimestampWithDateLogger [..] - Slf4jLogger started


however, I still see the akkaTimestamp with same timestamp format as 
earlier. 


Any hints.. 


Thanks in advance


TS 


-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to