Changing Log Levels

By default, Nymi Enterprise Server (NES) logs all messages to the log files.

NES supports the following log levels:

Level Description Message levels included in the log file
OFF Turns off logging completely. NES does not log messages, regardless of their severity level. n/a
ALL NES logs all messages including low level debug messages, regardless of their severity level.
  • DEBUG
  • INFO
  • WARN
  • ERROR
  • FATAL
DEBUG NES logs messages at the DEBUG level and higher. DEBUG messages provide detailed information for debugging and troubleshooting purposes.
  • DEBUG
  • INFO
  • WARN
  • ERROR
  • FATAL
INFO NES logs messages at the INFO level and higher. INFO messages provide general information about the operation and progress of the application.
  • INFO
  • WARN
  • ERROR
  • FATAL
WARN NES logs messages at the WARN level and higher. WARN messages indicate potential issues or unusual conditions that might require attention.
  • WARN
  • ERROR
  • FATAL
ERROR NES logs messages at the ERROR level and higher. ERROR messages indicate errors or exceptions that occur during the execution of the application.
  • ERROR
  • FATAL
FATAL NES logs messages at the FATAL level only. FATAL messages represent critical errors that cause the application to terminate or become unusable.
  • FATAL
Note: Nymi recommends that you leave the level at the default level ALL

To change the logging level, perform the following steps:

  1. Edit the C:\inetpub\wwwroot\nes_service_name\NESg2.Admin\web.config file and in the <log4net> section, change the value for each level value parameter from to the required level.
    For example, to change from the default value ALL to DEBUG:
    
                            <root>
                                <level value="DEBUG" />
                                <appender-ref ref="RollingLogFileAppender" />
                            </root>
                            <logger additivity="false" name="RollingLogFileAppender">
                            <level value="DEBUG" />
                              <appender-ref ref="RollingLogFileAppender" />
                            </logger>      
                        
  2. Edit the C:\inetpub\wwwroot\nes_service_name\NEnrollment\web.config file and in the <log4net> section, change the value for each level value parameter from ALL to INFO.
    For example, to change from the default value ALL to INFO:
    
                            <root>
                            <level value="INFO" />
                                <appender-ref ref="RollingLogFileAppender" />
                            </root>
                            <logger additivity="false" name="RollingLogFileAppender">
                                <level value="INFO" />
                                <appender-ref ref="RollingLogFileAppender" />
                            </logger>   
                        
  3. Edit the C:\inetpub\wwwroot\nes_service_name\AuthenticationService\web.config file and in the <log4net> section, change the value for each level value parameter from Information to Verbose.
    For example, to change from the default value ALL to FATAL:
    
                            <root>
                                <level value="FATAL" />
                                <appender-ref ref="RollingLogFileAppender" />
                            </root>
                            <logger additivity="false" name="RollingLogFileAppender">
                                    <level value="FATAL" />
                                 <appender-ref ref="RollingLogFileAppender" />
                            </logger>   
                        
  4. Restart the IIS.

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.