Jump to content

Logger

From LabVIEW Wiki
Revision as of 07:16, 4 January 2025 by Logmanoriginal (talk | contribs) (Created page with "'''Logger''' is a LabVIEW Class of NI LabVIEW Command Line Interface and used by CoreOperation to provide additional logging capabilities. ==Methods== ===GetLoggerInformation=== The '''GetLoggerInformation''' method returns the information provided when the logger was initialized by LabVIEWCLI. It returns a cluster with three elements: {| class="wikitable" !Name !Data Type !Description |- |Log File Path |style="text-align: center;"|{{Terminal|type=indicato...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Logger is a LabVIEW Class of NI LabVIEW Command Line Interface and used by CoreOperation to provide additional logging capabilities.

Methods

GetLoggerInformation

The GetLoggerInformation method returns the information provided when the logger was initialized by LabVIEWCLI. It returns a cluster with three elements:

Name Data Type Description
Log File Path Path to the log file for the current session.
Verbosity Verbosity level as defined by -Verbosity when LabVIEWCLI was called (Minimal, Default, Detailed, Diagnostic)
Append to log file? Indicates whether new messages are appended to the end of the log file.

LogMessage

The LogMessage method adds a new message to the log file when the specified verbosity level is lower or equal to the verbosity level defined through the -Verbosity argument when calling LabVIEWCLI.

It has two input arguments:

Name Data Type Description
Message The message to append to the log file.
Verbosity The verbosity level of the message. If the verbosity level is higher than the verbosity level specified when calling LabVIEWCLI, the message is not added to the log file.

See also

External links