The NDD Print Agent logs are used to analyze the component's performance.
They can have different logging levels:
|
Level |
Contents |
|---|---|
|
VERBOSE |
Displays all log messages (default). |
|
ERROR |
Displays the issues that caused errors, as well as the lower-level message in this list. |
|
WARNING |
It highlights potential issues that are not yet errors, as well as the lower-level messages in this list. |
|
INFO |
Displays the log messages expected during normal operation, as well as the lower-level messages in this list. |
|
DEBUG |
Displays debug log messages that are useful only during development, as well as the lower-level messages in this list. |
|
NONE |
Disabled. |
The logs will be saved to the path specified in the Directory field, located in the Tools / Logs menu.
Only administrator users can enable or disable logs.
Enable Logs
-
Open Terminal (⌘ + Space → enter Terminal)
-
Type the command:
NDDPrintAgentAdmin -
Access the Tools menu
-
Click Logs
-
Select the log level
-
Click Apply
The directory path where the logs will be saved is already set to /opt/ndd-print-agent/log. This path can be changed.
Analyzing Logs
To analyze the logs, you must elevate the Terminal to Administrator privileges
-
Open Terminal (⌘ + Space → enter Terminal)
-
Elevate the session to Administrator (enter the administrator password when prompted):
sudo su
-
Access the logs directory:
cd /opt/ndd-print-agent/log -> (caminho padrão)
-
List the files:
Bashls -l -
Open the desired file using the command:
cat NOME_DO_ARQUIVO
Use the command cat FILE_NAME | grep "KEYWORD" para filtrar o log.
Example of how to read a file by filtering for errors:
cat FILE_NAME | grep "ERR"
Delete the Logs
-
Open Terminal (⌘ + Space → enter Terminal)
-
Type the following commands:
rm FILE_NAME
Use the command echo "" > FILE_NAME to clear the log without restarting the services.