Table of Contents

TTMSMCPLogLevel Enumeration

Severity levels defined by the protocol log specification, ordered from least to most severe: llDebug verbose tracing, llInfo routine progress, llNotice normal but significant events, llWarning conditions worth attention, llError failed operations, llCritical failures affecting a component, llAlert conditions requiring immediate action, and llEmergency a system that is unusable.

API unit family: TMS.MCP.Server

Remarks

A client selects the level it wants through the logging/setLevel request, which updates CurrentLogLevel. The default level is llInfo. Selecting a level does not switch on any filtering: SendLogMessage broadcasts every record it is given to every connected client once initialization has completed, so comparing a record against CurrentLogLevel before sending it is the application's own responsibility.

Members

Name Description
llDebug Verbose tracing kept for development and fault finding, such as individual message bodies and intermediate state. Sent as debug.
llInfo Routine progress that confirms normal operation, such as a completed handshake or a served request. Sent as info, and it is the level assumed when nothing has been selected or an unrecognized level name arrives.
llNotice Normal but noteworthy events that deserve to stand out from routine progress, such as a configuration change or a client reconnecting. Sent as notice.
llWarning Something unexpected that did not stop the operation but is worth attention, such as a deprecated argument or a retried call. Sent as warning.
llError An operation failed while the process as a whole kept running, such as a single call that could not be completed. Sent as error.
llCritical A failure that disables a whole component rather than one operation, such as a data source or transport that can no longer be used. Sent as critical.
llAlert A condition that requires someone to intervene straight away, because the process cannot recover from it on its own. Sent as alert.
llEmergency The highest severity: the system is unusable and nothing further can be served. Sent as emergency.