shell - How to get logs from a JAVA file -
i having seperate jar file stuffs. deployed in tomcat. inside jar have java file main method. class name startpoint. calling main method shell script "java startpoint checkstatus". main method validates checkstatus param , job accordingly. java files inside jar uses log4j , uses log.info/log.debug logging. these logs working fine if tomcat up. due requirement triggered main method shell script , unable log information. please how can logs added using logger.info/debug?
try passing additional parameter log4j config file path:
-dlog4j.configuration={path file}
Comments
Post a Comment