LOG Module
Application Program Interface
2-183
2.13
LOG Module
The LOG module captures events in real time.
Functions
❏
LOG_disable. Disable the system log.
❏
LOG_enable. Enable the system log.
❏
LOG_error. Write a user error event to the system log.
❏
LOG_event. Append unformatted message to message log.
❏
LOG_message. Write a user message event to the system log.
❏
LOG_printf. Append formatted message to message log.
❏
LOG_reset. Reset the system log.
Configuration
Properties
The following list shows the properties that can be configured in a Tconf
script, along with their types and default values. For details, see the LOG
Manager Properties and LOG Object Properties headings. For
descriptions of data types, see Section 1.4,
Module Configuration Parameters
Instance Configuration Parameters
Description
The Event Log is used to capture events in real time while the target
program executes. You can use the system log, or create user-defined
logs. If the logtype is circular, the log buffer of size buflen contains the last
buflen elements. If the logtype is fixed, the log buffer contains the first
buflen elements.
The system log stores messages about system events for the types of log
tracing you have enabled. See the TRC Module, page 2–467, for a list of
events that can be traced in the system log.
Name
Type
Default
OBJMEMSEG
Reference
prog.get("DARAM")
Name
Type
Default (Enum Options)
comment
String
"<add comments here>"
bufSeg
Reference
prog.get("DARAM")
bufLen
EnumInt
64 (0, 8, 16, 32, 64, ..., 32768)
logType
EnumString
"circular" ("fixed)
dataType
EnumString
"printf" ("raw data")
format
String
"0x%x, 0x%x, 0x%x"