How To Download The Log Files¶
Most LabOne Software components have a logging feature. The logs can be helpful for monitoring or debugging.
The following logging levels available:
- 0: Trace
- 1: Debug
- 2: Info
- 3: Status (Default)
- 4: Warning
- 5: Error
- 6: Fatal
Data Server Log¶
Probably the most important log is the data server log. Since it is the center of
your setup, it contains the most information. Similar to most other features,
the data server log can be controlled through nodes
(/ZI/DEBUG/
).
The logs are automatically stored once the data server is running. The log level
can be easily changed through the /ZI/DEBUG/LEVEL
node and take effect immediately.
It is recommended to access the generated log files directly through the file system
(/ZI/DEBUG/LOGPATH
). If needed, the currently used log file can be accessed
through the /ZI/DEBUG/LOG
node.
Firmware Log
The firmware log can not be accessed directly. However the data server logs by default contains relevant firmware log messages.
Client Log¶
In contrast to the data server log the client log is not enabled by default. To enable the logging the log level has to be specified. This will automatically start the logging.
daq.setDebugLevel(3)
session.daq_server.setDebugLevel(3)
Info
The logger will log both to a file and to the console. For convenience the
level for each output can be specified separately.
(daq.setDebugLevelConsole
, daq.setDebugLevelFile
)
The default logger path depends on the operating system:
- Windows:
C:\Users\<user>\AppData\Local\Temp\Zurich Instruments\LabOne\ziPythonLog
- Linux/MacOS:
/temp/ziPythonLog_<user>
All log related functions are documented in the Logging section of the reference documentation.
ziAPISetDebugLevel(3);
The default logger path depends on the operating system:
- Windows:
C:\Users\<user>\AppData\Local\Temp\Zurich Instruments\LabOne\ziAPILog
- Linux/MacOS:
/temp/ziAPILog_<user>
All log related functions are documented in the Logging section of the reference documentation.
ziDAQ('setDebugLevel', 3);
The default logger path depends on the operating system:
- Windows:
C:\Users\<user>\AppData\Local\Temp\Zurich Instruments\LabOne\ziAPILog
- Linux/MacOS:
/temp/ziAPILog_<user>
All log related functions are documented in the Logging section of the reference documentation.
Error
The LabView API currently does not support any logging.
daq.setDebugLevel(3);
The default logger path depends on the operating system:
- Windows:
C:\Users\<user>\AppData\Local\Temp\Zurich Instruments\LabOne\ziAPILog
- Linux/MacOS:
/temp/ziAPILog_<user>
All log related functions are documented in the Logging section of the reference documentation.