You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I thought any placeholder was possible in any case!
Maybe on the documentation is better to specify what placeholders are possible in each writer type and method.
For my request, yes its a feature for debugging if the application has several identical threads to identify the thread whith the problem.
I'm trying to use the following tinylog.properties with tinylog 2.6.1:
rolling file
writer = rolling file
writer.level = trace
writer.format = {date: HH:mm:ss.SSS}|{thread}|{class}-{method}:{line}-{level}: {message}
writer.file = logs/{date:yyyy}/{date:MM}/log_{date:yyyy-MM-dd}{thread}{count}.log
writer.latest = logs/latest_{thread}.log
writer.charset = UTF-8
writer.buffered = true
writer.policies = startup, daily: 00:00, size: 2mb
writer.convert = gzip
writingthread = true
But i'm getting the following error when ever I use thread placeholder on writer.file or/and writer.latest:
LOGGER ERROR: Failed creating service implementation 'org.tinylog.writers.RollingFileWriter' (java.lang.IllegalArgumentException: Invalid token 'thread' in 'logs{date:yyyy}{date:MM}\log_{date:yyyy-MM-dd}{pid}{thread}_{count}.log')
Is it a bug or I'm doing something wrong? I'm trying to do rolling file per thread.
Regards
João R.
The text was updated successfully, but these errors were encountered: