Sunday 15 March 2015

How to convert a Akka LoggingAdapter to a SLF4J Logger -



How to convert a Akka LoggingAdapter to a SLF4J Logger -

i using akka loggingadapter instances within actors log, have library code calling actor, takes slf4j logger instance parameter.

is there easy way convert or wrap loggingadapter, can pass library code slf4j logger.

i write such wrapper hand, think sounds pretty normal utilize case, thought there mayby way already, had no luck finding.

i ended creating wrapper class, implements slf4j logger interface, , delegates calls wrapped loggingadapter. class can found in this project on bitbucket

akka

No comments:

Post a Comment