Skip to content
Advertisement

Replace Timestamp in Written Text File

I need to read a file and write it in a new file, the file that I read has it own time stamp, but in the written file I need to replace it with the current time eg( 2020-09-20 19:30 change it to 2020-…

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