Class LoggingProfileContextSelector

    • Method Detail

      • getOrCreate

        protected org.jboss.logmanager.LogContext getOrCreate​(String loggingProfile)
        Get or create the log context based on the logging profile.
        Parameters:
        loggingProfile - the logging profile to get or create the log context for
        Returns:
        the log context that was found or a new log context
      • get

        public org.jboss.logmanager.LogContext get​(String loggingProfile)
        Returns the log context associated with the logging profile or null if the logging profile does not have an associated log context.
        Parameters:
        loggingProfile - the logging profile associated with the log context
        Returns:
        the log context or null if the logging profile is not associated with a log context
      • exists

        public boolean exists​(String loggingProfile)
        Checks to see if the logging profile has a log context associated with it.
        Parameters:
        loggingProfile - the logging profile to check
        Returns:
        true if the logging profile has an associated log context, otherwise false
      • remove

        public org.jboss.logmanager.LogContext remove​(String loggingProfile)
        Removes the associated log context from the logging profile.
        Parameters:
        loggingProfile - the logging profile associated with the log context
        Returns:
        the log context that was removed or null if there was no log context associated