Class HostingServiceLogger

  • All Implemented Interfaces:

    
    public class HostingServiceLogger
    
                        

    Logger which adds instance and hosting service specific information to every log message using the CloseableThreadContext.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static Logger getLogger(Logger logger, HostingServiceProxy hostingService, String frameworkIdentifier) Gets a logger.
      static KotlinLogger getLogger(ExtendedLogger logger, HostingServiceProxy hostingService, String frameworkIdentifier) Gets a logger.
      static KotlinLogger getLogger(KotlinLogger logger, HostingServiceProxy hostingService, String frameworkIdentifier) Gets a logger.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HostingServiceLogger

        HostingServiceLogger()
    • 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 wrap
        hostingService - the hosting service information that is added to log messages
        frameworkIdentifier - 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 wrap
        hostingService - the hosting service information that is added to log messages
        frameworkIdentifier - 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 wrap
        hostingService - the hosting service information that is added to log messages
        frameworkIdentifier - identifier of the current framework instance
        Returns:

        a child logger adapter that contains instance and hosting service information in the log context