io.sarl.sre.janus.boot.configs.subconfigs
Class LoggingConfig
class LoggingConfig
extends java.lang.Object
Configuration for the agent logging service.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Since:
0.11
Property Summary
Modifier and type Property and description
java.lang.String platformMessageFormat
Field Summary
Modifier and type Field and description
public static val java.lang.String PLATFORM_MESSAGE_FORMAT_NAME
Name of property that contains the format of the logging messages on the platform.
public static val java.lang.String PLATFORM_MESSAGE_FORMAT_VALUE
Format of the logging messages on the platform.
public static val java.lang.String PREFIX
Prefix for the configuration entries of the logging configuration.
Action Summary
Modifier and type Action and description
java.lang.String getPlatformMessageFormat
void setPlatformMessageFormat(String)
Change the pattern of the platform messages.
Property Details
platformMessageFormat
var platformMessageFormat : java.lang.String

This property is an alias for the action: getPlatformMessageFormat

Field Details
PLATFORM_MESSAGE_FORMAT_NAME
public static val PLATFORM_MESSAGE_FORMAT_NAME : java.lang.String = "sre.services.logging.platformMessageFormat"
Name of property that contains the format of the logging messages on the platform.

The format string may contains one of the following elements:
  • %1: the date,
  • %2: the name of the calling function,
  • %3: the name of the logger,
  • %4: the logging level,
  • %5: the message, and
  • %6: the throwable.
See:
PLATFORM_MESSAGE_FORMAT_VALUE
PLATFORM_MESSAGE_FORMAT_VALUE
public static val PLATFORM_MESSAGE_FORMAT_VALUE : java.lang.String = "[%4$s, %1$tl:%1$tM:%1$tS%1$tp, %3$s] %5$s%6$s%n"
Format of the logging messages on the platform.

The format string may contains one of the following elements:
  • %1: the date,
  • %2: the name of the calling function,
  • %3: the name of the logger,
  • %4: the logging level,
  • %5: the message, and
  • %6: the throwable.
See:
PLATFORM_MESSAGE_FORMAT_NAME
PREFIX
public static val PREFIX : java.lang.String = "sre.services.logging"
Prefix for the configuration entries of the logging configuration.
Action Details
getPlatformMessageFormat
def getPlatformMessageFormat : java.lang.String
setPlatformMessageFormat(String)
def setPlatformMessageFormat(String)
Change the pattern of the platform messages.

The format string may contains one of the following elements:
  • %1: the date,
  • %2: the name of the calling function,
  • %3: the name of the logger,
  • %4: the logging level,
  • %5: the message, and
  • %6: the throwable.
Parameters:
pattern - the new pattern, or null to use the default pattern.