KB00022442: How to adjust the log level for custom scripts?

Issue Description / Question:

This wiki article answers two questions as below:

  • How to adjust the log level for custom scripts?
  • Which LoggerFactory I have to use EphesoftLoggerFactory or ScriptLoggerFactory in Custom Script?

 

Component: Logging / Scripting

Solution / Answers:

ScriptLoggerFactory is responsible for controlling script logging. It has a method which returns an instance of EphesoftLogger as well. Both application & Script logs are controlled in log4j.xml (Located at Ephesoft -> Application) file using logger name=”com.ephesoft”. If you change this to INFO then both application & script level INFO logs will be displayed.