Specifying your logger settings

The Logger Settings page allows you specify a log level and capture that information. Once you have specified a log level, you can export the log to a .zip file that contains multiple .txt log files. The following log levels are available for selection:

  • Error: This log level is used to find any error which is fatal to the operation, but not the service or application (can't open a required file, missing data, etc.). These errors force user (administrator, or direct user) intervention. These are usually reserved for incorrect connection strings, missing services, etc.

  • Warn: This log level is used to detect application oddities. Such as switching from a primary to backup server, retrying an operation, missing secondary data, etc. This level is selected by default.

  • Info: This log level is the default level. This level provides useful log information for general SmartHub processes (service start/stop, configuration assumptions, etc).

  • Debug: This log level provides Information that is diagnostically helpful to people more than just developers , such as IT support, sysadmins, etc.)

  • Trace: This log level is used to trace the code and find one part of a failing operation, specifically.

Access the log files

The log files are located in the logging folder of the SmartHub directory. For example SmartHub/<SmartHub-7.x.x.x>/Logging.

Export the log files

You can export the log files according to the selected log level from the Logger Settings page:

  1. In the SmartHub admin portal, click Logger Settings under Administration in the left pane.

  2. In the Log Level field, select the specified log level from the drop-down list.

  3. Click Export Logs.

  4. A .zip file containing the logs is downloaded to your browser. You can extract this file to view the logs. The format of the exported log file is yyyy_mm_dd-hh_mm_ss-SmartHubLogs.zip.

Delete the log file

  1. In the SmartHub admin portal, click Logger Settings under Administration in the left pane.

  2. Click Delete Logs. This clears the logging folder in the SmartHub directory.

Specify the name and location of your logger file

  1. Open the web.config file in a text editor.

  2. To specify the name of your logger file, add the following line: <add key="log4net.Config" value="Logger.config" />. Replace the value with your desired file name.

  3. To Specify the location of your logger file, add the following line: <add key="LoggingFolder" value="~/Logging" />. Replace the value with your desired file location.

  4. Save your changes.