logging - Scala slf4j dynamic file name -
i added grizzled-slf4j
logger project using link http://alvinalexander.com/scala/how-to-log-output-file-grizzled-slf4j-scala-simplelogger.properties
but using properties, there no option create dynamic file name:
org.slf4j.simplelogger.logfile = /tmp/myapp.log org.slf4j.simplelogger.defaultloglevel = info org.slf4j.simplelogger.showdatetime = true org.slf4j.simplelogger.datetimeformat = yyyy'/'mm'/'dd' 'hh':'mm':'ss'-'s org.slf4j.simplelogger.showthreadname = true org.slf4j.simplelogger.showlogname = true org.slf4j.simplelogger.showshortlogname= false org.slf4j.simplelogger.levelinbrackets = true
is there other logger scala projects allow me add dynamic file name, or how using library (i see wrapper slf4j)
the slf4j library interface underlying logging implementation. have log4j, logback or other logging implementation heavy lifting, adapter jar, explained in slf4j documentation.
you provide details in properties file log4j instance, can bind in dynamically constructed file names.
Comments
Post a Comment