# Troubleshooting logs

The log messages produced by Qlik NPrinting provide important information that can be used to detect security incidents, operational problems, and policy violations.

### Where are the log files stored?

Logs are stored in the %ProgramData%\Nprinting\Logs folder. The default location is C:\ProgramData\NPrinting\Logs.

### How to change the log level

The log level is set to INFO by default. You can change the log level to DEBUG of a Windows service.

Do the following:

1. Open the appropriate configuration file with a text editor:

   * C:\Program Files\NPrintingServer\NPrinting\Engine\Qlik.NPrinting.Engine.exe.config
   * C:\Program Files\NPrintingServer\NPrinting\Scheduler\Qlik.NPrinting.Scheduler.exe.config
   * C:\Program Files\NPrintingServer\NPrinting\WebEngine\Qlik.NPrinting.WebEngine.exe.config

   Where C:\Program Files\NPrintingServer is the Qlik NPrinting Server installation path. Adapt it to your installation if necessary.

   If you want to view Qlik NPrinting On-Demand logs, you need to set Qlik.NPrinting.Engine.exe.config to DEBUG.

2. Search for:

   `<root>` `<level value="INFO" />` `<appender-ref ref="LogFileAppender" />` `<!--Uncomment the row below and set the level value above to obtain the logs in the file nprinting_engine_dev.log-->` `<!--<appender-ref ref="LogFileAppenderDev" />-->` `<appender-ref ref="LogFileAppender" />` `</root>`

3. Change `level value` to `"DEBUG"`:

   `<root>` `<level value="DEBUG" />` `<appender-ref ref="LogFileAppender" />` `<!--Uncomment the row below and set the level value above to obtain the logs in the file nprinting_engine_dev.log-->` `<!--<appender-ref ref="LogFileAppenderDev" />-->` `<appender-ref ref="LogFileAppender" />` `</root>`

4. Uncomment: `<!--<appender-ref ref="LogFileAppenderDev" />-->`

5. Save the edited files.

6. Restart the corresponding Windows service.

When you change a log level to DEBUG, a new log file is created. The new log file has the same name as the log file with INFO details level followed by \_dev. For example:

* nprinting\_scheduler\_dev.log
* nprinting\_webengine\_dev.log
* nprinting\_engine\_dev.log

The default log files will still be present and will continue to only have INFO level information.