I have an java app that needs to email out a log file. I can hard-code the file name ("logs/Info.log") and it works, but would rather use the file name referenced in log4j.appender.DAILY.file
from the log4j property file.
My question is, how can I find the reference to "log4j.appender.DAILY.file
" ? I don't want to re-read the log4j.properties. This is already loaded somewhere. How can I obtain its value ?
Sample Log4j below ...
# Log4j configuration file.
# ALL, NONE, DEBUG, INFO, WARN, ERROR