The Log message text to file setting allows the HL7 Auto-Sender to log outbound messages to a text file for review, processing, or troubleshooting. The log file can be turned on or off per export destination. When logging is turned on, the HL7 Auto-Sender appends new messages to the log file as they are sent.
Log file paths can include variables, meaning the file name and the location the log file is saved to can be set to reflect information about the message. This dynamic organization can make locating and working with logs easier.
The following variables are allowed in log file paths:
Variable |
Description |
---|---|
%OBUSER% |
The name of the user currently logged in to OnBase. |
%HL7MSGTYPE% |
The HL7 Message Type. |
%DATE% |
The current date, formatted YYYYMMDD with leading zeros for the month and day. |
%YYYY% |
The current year. |
%MM% |
The current month, with leading zero. |
%DD% |
The current day, with leading zero. |
Additionally, Windows system variables can be included in log file paths. These variables are specific to individual workstations. See your operating system documentation for how to configure system variables.
Windows user variables cannot be used in file paths. Be sure to only use system variables.
For example, a system variable named HL7LogDir with a value of C:\HL7\Logs\ can be used as the first part of the path where logs created by the workstation will be saved.
A file path using variables might look something like this:
%HL7LogDir%%DATE%\OUT_%HL7MSGTYPE%_%OBUSER%.txt
When logs are created, they would then be saved to:
C:\HL7\Logs\20172401\OUT_ADT^A01_MANAGER.txt