Class HostingServiceLogger
-
- All Implemented Interfaces:
public class HostingServiceLoggerLogger which adds instance and hosting service specific information to every log message using the CloseableThreadContext.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringHOSTING_SERVICE_INFO
-
Constructor Summary
Constructors Constructor Description HostingServiceLogger()
-
Method Summary
Modifier and Type Method Description static LoggergetLogger(Logger logger, HostingServiceProxy hostingService, String frameworkIdentifier)Gets a logger. static KotlinLoggergetLogger(ExtendedLogger logger, HostingServiceProxy hostingService, String frameworkIdentifier)Gets a logger. static KotlinLoggergetLogger(KotlinLogger logger, HostingServiceProxy hostingService, String frameworkIdentifier)Gets a logger. -
-
Method Detail
-
getLogger
static Logger getLogger(Logger logger, HostingServiceProxy hostingService, String frameworkIdentifier)
Gets a logger.
Use this function as a replacement for getLogger.
- Parameters:
logger- logger to wraphostingService- the hosting service information that is added to log messagesframeworkIdentifier- identifier of the current framework instance- Returns:
a child logger adapter that contains instance and hosting service information in the log context
-
getLogger
static KotlinLogger getLogger(ExtendedLogger logger, HostingServiceProxy hostingService, String frameworkIdentifier)
Gets a logger.
Use this function as a replacement for getLogger.
- Parameters:
logger- logger to wraphostingService- the hosting service information that is added to log messagesframeworkIdentifier- identifier of the current framework instance- Returns:
a child logger adapter that contains instance and hosting service information in the log context
-
getLogger
static KotlinLogger getLogger(KotlinLogger logger, HostingServiceProxy hostingService, String frameworkIdentifier)
Gets a logger.
Use this function as a replacement for getLogger.
- Parameters:
logger- logger to wraphostingService- the hosting service information that is added to log messagesframeworkIdentifier- identifier of the current framework instance- Returns:
a child logger adapter that contains instance and hosting service information in the log context
-
-
-
-