Skip to content
Advertisement

Tag: tinylog

Tinylog Android, is it possible to clear the file?

I’m using the Tinylog library with the “rolling file” function to write logs to a file. Sometimes I need to clear a file. Tried to do it with normal Java methods but it breaks the file and makes it hard to read. Is there a way to clear the log file at any point so it doesn’t break? Answer You

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: 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 … Answer You can use tags (https://tinylog.org/v2/configuration/#tags): Tagged loggers can be created via TaggedLogger logger

Advertisement