Package com.mendix.logging
Interface ILogNode
public interface ILogNode
A LogNode (a.k.a. Message Channel) represents a Node in the Publish/Subscribe
 logging system, that publishes messages to its subscribers.
 
The LogNode implements quite a lot of convenience-functions, for logging. Input gets wrapped in a LogMessage object inside the Node.
- 
Method SummaryModifier and TypeMethodDescriptionvoidLogs the specified message at the Critical level.voidLogs the specified message and cause at the Critical level.voidLogs the specified cause at the Critical level.voidLogs the specified message at the Debug level.voidLogs the specified message and cause at the Debug level.voidLogs the specified cause at the Debug level.voidLogs the specified message at the Error level.voidLogs the specified message and cause at the Error level.voidLogs the specified cause at the Error level.Returns all registered subscribers and the log level they subscribed to.voidLogs the specified message at the Info level.voidLogs the specified message and cause at the Info level.voidLogs the specified cause at the Info level.booleanReturns whether debug or trace is enabled.booleanReturns whether trace is enabled.voidLogs the specified message if the level allows.voidLogs the specified message and cause if the level allows.voidLogs the specified cause if the level allows.name()Returns the name of the log node.voidsubscribe(LogSubscriber subscriber, LogLevel logLevel) Subscribes the specified subscriber to receive log events for the specified level and above.voidLogs the specified message at the Trace level.voidLogs the specified message and cause at the Trace level.voidLogs the specified cause at the Trace level.voidUnsubscribes all registered subscribers.voidunsubscribe(LogSubscriber subscriber) Unsubscribes the specified subscriber.voidLogs the specified message at the Warning level.voidLogs the specified message and cause at the Warning level.voidLogs the specified cause at the Warning level.
- 
Method Details- 
nameString name()Returns the name of the log node.- Returns:
- the log node name
 
- 
isDebugEnabledboolean isDebugEnabled()Returns whether debug or trace is enabled.- Returns:
- true if the log level is debug or trace, false otherwise
 
- 
isTraceEnabledboolean isTraceEnabled()Returns whether trace is enabled.- Returns:
- true if the log level is trace, false otherwise
 
- 
logLogs the specified message and cause if the level allows.- Parameters:
- level- the log level for the message
- message- the log message
- cause- the stack trace
 
- 
logLogs the specified message if the level allows.- Parameters:
- level- the log level for the message
- message- the log message
 
- 
logLogs the specified cause if the level allows.- Parameters:
- level- the log level for the message
- cause- the stack trace
 
- 
criticalLogs the specified message and cause at the Critical level.- Parameters:
- message- the log message
- cause- the stack trace
 
- 
criticalLogs the specified message at the Critical level.- Parameters:
- message- the log message
 
- 
criticalLogs the specified cause at the Critical level.- Parameters:
- cause- the stack trace
 
- 
errorLogs the specified message and cause at the Error level.- Parameters:
- message- the log message
- cause- the stack trace
 
- 
errorLogs the specified message at the Error level.- Parameters:
- message- the log message
 
- 
errorLogs the specified cause at the Error level.- Parameters:
- cause- the stack trace
 
- 
warnLogs the specified message and cause at the Warning level.- Parameters:
- message- the log message
- cause- the stack trace
 
- 
warnLogs the specified message at the Warning level.- Parameters:
- message- the log message
 
- 
warnLogs the specified cause at the Warning level.- Parameters:
- cause- the stack trace
 
- 
infoLogs the specified message and cause at the Info level.- Parameters:
- message- the log message
- cause- the stack trace
 
- 
infoLogs the specified message at the Info level.- Parameters:
- message- the log message
 
- 
infoLogs the specified cause at the Info level.- Parameters:
- cause- the stack trace
 
- 
debugLogs the specified message and cause at the Debug level.- Parameters:
- message- the log message
- cause- the stack trace
 
- 
debugLogs the specified message at the Debug level.- Parameters:
- message- the log message
 
- 
debugLogs the specified cause at the Debug level.- Parameters:
- cause- the stack trace
 
- 
traceLogs the specified message and cause at the Trace level.- Parameters:
- message- the log message
- cause- the stack trace
 
- 
traceLogs the specified message at the Trace level.- Parameters:
- message- the log message
 
- 
traceLogs the specified cause at the Trace level.- Parameters:
- cause- the stack trace
 
- 
subscribeSubscribes the specified subscriber to receive log events for the specified level and above.- Parameters:
- subscriber- the subscriber to register
- logLevel- the log level to subscribe to
 
- 
unsubscribeUnsubscribes the specified subscriber.- Parameters:
- subscriber- the subscriber to unregister
 
- 
unsubscribevoid unsubscribe()Unsubscribes all registered subscribers.
- 
getSubscribersMap<LogSubscriber,LogLevel> getSubscribers()Returns all registered subscribers and the log level they subscribed to.
 
-