We are using solarwind to monitor the log file located in the installation folder ignition/logs/wrapper.
Unfortunately, regardless of the level that is configured for each log in the scripts (Ex. logger.error('this is an error') , the wrapper log will only show the level as INFO.
We noticed that the level of the log gets included in the message with the initial only (Ex. E this is an error). However, the actual field for the level is still showing INFO.
I looked at the Tanuki Software manual for the Java Service wrapper and got the idea to attempt the below changes in the config file.
I modified the config file to display only logs that are WARN or above, but no luck. Instead the logs stops displaying any new entries as its trying to filter out all the INFO logs. I did restart the gateway after every config file change was done.
# Log Level for log file output. (See docs for log levels)
wrapper.logfile.loglevel=WARN
I also tried using the system.util.setLoggingLevel(loggerName, loggerLevel) to attempt to modify the log level for an existing logger and no luck either.
Finally, I tried to change the log levels at the gateway (Status/Logs / click the edit icon and list all the logs and modify each one manually.) No luck.
I tried this both in 8.1 and 8.3 and had the same result.
As a last instance, I was thinking of changing the format of the log by changing the below config to only display the message and try to find a way to only look at the first character of each entry (I=Info,W=warn,E=error).
Is there a way to make ignition log the correct level in the log level field rather than logging everything as info?
# Format of output for the console. (See docs for formats)
wrapper.console.format=M

