Configure logging

Snow Inventory writes log files that are found in the log files location.

The maximum number of log files is five.

The Snow Inventory configuration file can be configured to modify default logging.

The <Logging> parameter must be added to the Snow Inventory configuration file together with preferred tags. If a tag is added, logging will be recorded for that tag.

The following code will enable logging for all tags:

<Logging>
    <Tags>
        <Tag>*</Tag>
    </Tags>
</Logging>

For troubleshooting purposes, it is advised to only include tags that you would like to see logging for.

To see all available tags, follow these steps when you are signed in to the Windows server that hosts Snow Inventory:

  1. Start Command Prompt

  2. Enter snowserver.exe lt

  3. Press Enter

The following code is an example of logging that is enabled for the request-pipe, ssl, and local-storage tags.

<Logging>
    <Tags>
        <Tag>request-pipe</Tag>
        <Tag>ssl</Tag>
        <Tag>local-storage</Tag>
    </Tags>
    <MaxLogSize>100</MaxLogSize>
</Logging>

<MaxLogSize> can be used to modify the default log-file size. The value for this parameter represents the number of megabytes (MB) that the file can grow to. By default a log file can grow to a maximum of two MB in size. The maximum log-file size is 500 MB.

To disable logging for all tags, modify the configuration file as follows:

<Logging>
    <Tags></Tags>
</Logging>