ANSI C UA Server SDK
1.6.0.341
|
Functions | |
OpcUa_Void | UaBase_Trace_SetLocalTimeTrace (OpcUa_Boolean a_isLocalTimeTrace) |
Configure if local time or UTC timetamps are used for the trace. More... | |
OpcUa_Boolean | UaBase_Trace_GetLocalTimeTrace () |
Get the current setting for LocalTimeTrace. More... | |
OpcUa_Void | UaBase_Trace_SetPrintDateInTrace (OpcUa_Boolean a_printDateInTrace) |
Configure if the date should be included in the trace output. More... | |
OpcUa_Boolean | UaBase_Trace_GetPrintDateInTrace () |
Get the current setting for PrintDateInTrace. More... | |
OpcUa_Void | UaBase_ConsoleTrace_Enable () |
Enable tracing to the console (stdout). More... | |
OpcUa_Void | UaBase_ConsoleTrace_Disable () |
Disable tracing to the console (stdout). More... | |
OpcUa_StatusCode | UaBase_FileTrace_Enable (OpcUa_String *a_pTraceFile, OpcUa_UInt32 a_maxTraceEntries, OpcUa_UInt32 a_numBackupFiles, OpcUa_String *a_pApplicationName, OpcUa_String *a_pApplicationVersion) |
Enable tracing to file. More... | |
OpcUa_StatusCode | UaBase_FileTrace_Modify (OpcUa_String *a_pTraceFile, OpcUa_UInt32 a_maxTraceEntries, OpcUa_UInt32 a_numBackupFiles) |
Modify the file trace settings. More... | |
OpcUa_StatusCode | UaBase_FileTrace_Disable () |
Disable tracing to file. More... | |
OpcUa_Boolean | UaBase_FileTrace_GetEnabled () |
Check if the FileTrace is enabled. More... | |
OpcUa_StatusCode | UaBase_FileTrace_SetApplicationName (OpcUa_String *a_pApplicationName) |
Set the name of the application to use for the file trace. More... | |
OpcUa_StatusCode | UaBase_FileTrace_SetApplicationVersion (OpcUa_String *a_pApplicationVersion) |
Set the version of the application to use for the file trace. More... | |
OpcUa_Void | UaBase_FileTrace_SetFlushDisabled (OpcUa_Boolean a_isFlushDisabled) |
Configure flushing the trace file after each entry. More... | |
OpcUa_Boolean | UaBase_FileTrace_GetFlushDisabled () |
Get the current setting for FlushDisabled. More... | |
OpcUa_Void | UaBase_FileTrace_FlushTrace () |
Flush the currently used trace file manually. More... | |
OpcUa_StatusCode | UaBase_Trace_GetTraceConfigFromSettings (UaBase_Settings *a_pSettings) |
Retrieve the trace configuration from settings and apply it. More... | |
OpcUa_Void UaBase_ConsoleTrace_Disable | ( | ) |
Disable tracing to the console (stdout).
OpcUa_Void UaBase_ConsoleTrace_Enable | ( | ) |
Enable tracing to the console (stdout).
OpcUa_StatusCode UaBase_FileTrace_Disable | ( | ) |
Disable tracing to file.
OpcUa_StatusCode UaBase_FileTrace_Enable | ( | OpcUa_String * | a_pTraceFile, |
OpcUa_UInt32 | a_maxTraceEntries, | ||
OpcUa_UInt32 | a_numBackupFiles, | ||
OpcUa_String * | a_pApplicationName, | ||
OpcUa_String * | a_pApplicationVersion | ||
) |
Enable tracing to file.
If the file trace is already enabled (can be tested with UaBase_FileTrace_GetEnabled), use UaBase_FileTrace_Modify instead.
a_pTraceFile | The name of the file to use. |
a_maxTraceEntries | Maximum number of trace entries in one file. |
a_numBackupFiles | Maximum number of backup files. |
a_pApplicationName | Optional: the name of the application, will be printed on top of the trace. |
a_pApplicationVersion | Optional: the version of the application, will be printed on top of the trace. |
OpcUa_Void UaBase_FileTrace_FlushTrace | ( | ) |
Flush the currently used trace file manually.
OpcUa_Boolean UaBase_FileTrace_GetEnabled | ( | ) |
Check if the FileTrace is enabled.
OpcUa_Boolean UaBase_FileTrace_GetFlushDisabled | ( | ) |
Get the current setting for FlushDisabled.
OpcUa_StatusCode UaBase_FileTrace_Modify | ( | OpcUa_String * | a_pTraceFile, |
OpcUa_UInt32 | a_maxTraceEntries, | ||
OpcUa_UInt32 | a_numBackupFiles | ||
) |
Modify the file trace settings.
a_pTraceFile | The name of the file to use. |
a_maxTraceEntries | Maximum number of trace entries in one file. |
a_numBackupFiles | Maximum number of backup files. |
OpcUa_StatusCode UaBase_FileTrace_SetApplicationName | ( | OpcUa_String * | a_pApplicationName | ) |
Set the name of the application to use for the file trace.
OpcUa_StatusCode UaBase_FileTrace_SetApplicationVersion | ( | OpcUa_String * | a_pApplicationVersion | ) |
Set the version of the application to use for the file trace.
OpcUa_Void UaBase_FileTrace_SetFlushDisabled | ( | OpcUa_Boolean | a_isFlushDisabled | ) |
Configure flushing the trace file after each entry.
The trace file is flushed automatically from time to time anyway.
OpcUa_Boolean UaBase_Trace_GetLocalTimeTrace | ( | ) |
Get the current setting for LocalTimeTrace.
OpcUa_Boolean UaBase_Trace_GetPrintDateInTrace | ( | ) |
Get the current setting for PrintDateInTrace.
OpcUa_StatusCode UaBase_Trace_GetTraceConfigFromSettings | ( | UaBase_Settings * | a_pSettings | ) |
Retrieve the trace configuration from settings and apply it.
OpcUa_Void UaBase_Trace_SetLocalTimeTrace | ( | OpcUa_Boolean | a_isLocalTimeTrace | ) |
Configure if local time or UTC timetamps are used for the trace.
a_isLocalTimeTrace | Pass OpcUa_True to use local time, OpcUa_False to use UTC time for trace timestamps. |
OpcUa_Void UaBase_Trace_SetPrintDateInTrace | ( | OpcUa_Boolean | a_printDateInTrace | ) |
Configure if the date should be included in the trace output.
a_printDateInTrace | Pass OpcUa_True to include date and time in the trace output. |