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.

  2. Search for:

    <root>

    <level value="OFF" />

    <appender-ref ref="LogFileAppender" />

    </root>

  3. Change level value to "ALL":

    <root>

    <level value="ALL" />

    <appender-ref ref="LogFileAppender" />

    </root>

  4. Open C:\Program Files\NPrintingServer\NPrinting\Engine\Qlik.NPrinting.Engine.exe.config and find:

    <logger name="Qlik.NPrinting.Engine" additivity="False">

    <logger name="Engine" additivity="False">

    <logger name="Qlik.NPrinting.Common" additivity="False">

  5. Change additivity to "True":

    <logger name="Qlik.NPrinting.Engine" additivity="True">

    <logger name="Engine" additivity="True">

    <logger name="Qlik.NPrinting.Common" additivity="True">

  6. Open C:\Program Files\NPrintingServer\NPrinting\Scheduler\Qlik.NPrinting.Scheduler.exe.config and find:

    <logger name="Qlik.NPrinting.Scheduler" additivity="False">

    <logger name="Qlik.NPrinting.Repo" additivity="False">

    <logger name="Qlik.NPrinting.Common" additivity="False">

  7. Change additivity to "True":

    <logger name="Qlik.NPrinting.Scheduler" additivity="True">

    <logger name="Qlik.NPrinting.Repo" additivity="True">

    <logger name="Qlik.NPrinting.Common" additivity="True">

  8. Open C:\Program Files\NPrintingServer\NPrinting\WebEngine\Qlik.NPrinting.WebEngine.exe.config and find:

    <logger name="Qlik.NPrinting.WebEngine" additivity="False">

    <logger name="Qlik.NPrinting.Repo.Service" additivity="False">

  9. Change additivity to "True":

    <logger name="Qlik.NPrinting.WebEngine" additivity="True">

    <logger name="Qlik.NPrinting.Repo.Service" additivity="True">

  10. Save the edited files.
  11. 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.