io.sarl.sre.janus.services.logging
Interface LoggingService
All Superinterfaces:
org.arakhne.afc.services.IService
All Known Implementing Classes:
QuietLoggingService, JulLoggingService
@org.eclipse.xtext.xbase.lib.XbaseGenerated
interface LoggingService
implements org.arakhne.afc.services.IService
This class enables to log information by ensuring that the values of the parameters are not evaluated until the information should be really log, according to the log level.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Property Summary
Modifier and type Property and description
java.util.logging.Logger kernelLogger
Replies the logger used by the kernel.
java.util.logging.Logger platformLogger
Replies the logger used by the platform.
Action Summary
Modifier and type Action and description
abstract java.util.logging.Logger createAgentLogger(String,[Level])
Create a logger for an agent.
abstract java.util.logging.Logger getKernelLogger
Replies the logger used by the kernel.
abstract java.util.logging.Logger getKernelModuleLogger(String)
Replies the logger used by a specific module of the kernel.
abstract java.util.logging.Logger getPlatformLogger
Replies the logger used by the platform.
Property Details
kernelLogger
val kernelLogger : java.util.logging.Logger
Replies the logger used by the kernel.

This property is an alias for the action: getKernelLogger

Returns:
the logger.
Since:
0.7
See:
getKernelModuleLogger(String)
platformLogger
val platformLogger : java.util.logging.Logger
Replies the logger used by the platform. The platform logger is the root logger for all the other loggers (for kernel and agents). It is not recommended to use this logger directly.

This property is an alias for the action: getPlatformLogger

Returns:
the logger.
Since:
0.7
Action Details
createAgentLogger(String,[Level])
def createAgentLogger(String,[Level]) : java.util.logging.Logger
Create a logger for an agent.
Parameters:
name - the name of the logger, usually the name of the agent.
initialLevel - the initial level to associate to the logger. If it is null, the level is the less verbose between the default level (given in the SRE configuration) and the parent level.
Returns:
the logger.
Since:
0.7
getKernelLogger
def getKernelLogger : java.util.logging.Logger
Replies the logger used by the kernel.
Returns:
the logger.
Since:
0.7
See:
getKernelModuleLogger(String)
getKernelModuleLogger(String)
def getKernelModuleLogger(String) : java.util.logging.Logger
Replies the logger used by a specific module of the kernel.
Parameters:
moduleName - the name of the sub-logger.
Returns:
the logger.
Since:
0.12
See:
getKernelLogger
getPlatformLogger
def getPlatformLogger : java.util.logging.Logger
Replies the logger used by the platform. The platform logger is the root logger for all the other loggers (for kernel and agents). It is not recommended to use this logger directly.
Returns:
the logger.
Since:
0.7