Skip to content
Advertisement

Using tinylog with two console writers in parallel

I am using https://mvnrepository.com/artifact/org.tinylog/tinylog-api/2.2.0 in our project.

I can configure my writer format the following way:

JavaScript

But now I need a different output format for some loggers.

Is this possible with tinylog? If yes, can someone provide a short example how to do this?

Thanks …

Advertisement

Answer

You can use tags (https://tinylog.org/v2/configuration/#tags):

JavaScript

Tagged loggers can be created via TaggedLogger logger = Logger.tag("A").

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement