Logging to $LOG_DIR$ from separate Logger

Hi,

in my plugin I have to use a separate Log4J logger than the one provided by IDEA. I would still like to log to $LOG_DIR$, but can't find a way to get the path in a compatible-seeming way. I check $IDEA_HOME/bin/log.xml how it is done, but it does not help:

log4j.appender.SarosFileAppender.file=$LOG_DIR$/SarosLogs/yyyy-MM-dd/Saros_%s_yyyy-MM-dd_HH-mm-ss.log


Only creates a "$LOG_DIR" folder in the $IDEA_HOME/bin directory. Is there another way to get at the $LOG_DIR$ or at least at the system dir?

Regards,
Holger

1 comment
Comment actions Permalink

PathManager.getLogPath()

1

Please sign in to leave a comment.