Singleton
caplin.core

LogLevel

The class has been deprecated and may be removed in future releases.
Singleton that provides the log levels that are used for determining whether a log message is added to the log console or not.

The levels, in order of importance, are:
  • TRACE
  • CRITICAL
  • ERROR
  • NOTIFY
  • WARN
  • INFO
  • DEBUG

Constructor Summary

Attributes Name and Description
caplin.core.LogLevel()

This constructor is private and must never be used.

Field Summary

Attributes Name and Description
<static> caplin.core.LogLevel.CRITICAL

Level used to log the highest importance messages (typically fatal unrecoverable problems).

<static> caplin.core.LogLevel.DEBUG

Level used to log general debug message.

<static> caplin.core.LogLevel.ERROR

Level used to log a message for a serious, but recoverable, problem.

<static> caplin.core.LogLevel.INFO

Level used to log informational messages.

<static> caplin.core.LogLevel.NOTIFY

Level used to log notification messages.

<static> caplin.core.LogLevel.TRACE

Level used to log tracing messages (messages that show the methods that are being called within the system).

<static> caplin.core.LogLevel.WARN

Level used to log non-error warning messages.

Constructor Detail

caplin.core.LogLevel()

This constructor is private and must never be used.

Deprecated
caplin.core.LogLevel has been deprecated in favour of the caplin.core.log package.

Field Detail

<static> int caplin.core.LogLevel.CRITICAL

Level used to log the highest importance messages (typically fatal unrecoverable problems). These messages will added to the debug log in all circumstances.

<static> int caplin.core.LogLevel.DEBUG

Level used to log general debug message. It is recommended that this level is used to log fine grain application level log messages.

<static> int caplin.core.LogLevel.ERROR

Level used to log a message for a serious, but recoverable, problem.

<static> int caplin.core.LogLevel.INFO

Level used to log informational messages. It is recommended that this level is used to log infrequent application level log messages.

<static> int caplin.core.LogLevel.NOTIFY

Level used to log notification messages.

<static> int caplin.core.LogLevel.TRACE

Level used to log tracing messages (messages that show the methods that are being called within the system). This level should not be used by any code other than 'bootstrap.js', which allows dynamic tracing code to be added for any user specified classes/methods.

TRACE is made the highest level of logging since tracing methods can be enabled dynamically, and only for the classes or methods an administrator wishes to see. In this way, tracing methods will never pollute the logs unintentionally, and administrators will not lose the tracing messages beneath huge numbers of INFO level messages.

<static> int caplin.core.LogLevel.WARN

Level used to log non-error warning messages.