Interface LoggersManager<T>

Type Parameters:
T - The type
All Known Implementing Classes:
DefaultLoggersManager

public interface LoggersManager<T>
Used to retrieve and update logger information for the LoggersEndpoint.
Since:
1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    org.reactivestreams.Publisher<T>
    getLogger(ManagedLoggingSystem loggingSystem, @NotBlank String name)
    Find (or create if not found) the named logger in the system.
    org.reactivestreams.Publisher<T>
    Collect all existing loggers in the system.
    void
    setLogLevel(ManagedLoggingSystem loggingSystem, @NotBlank String name, io.micronaut.logging.LogLevel level)
    Set the log level for the named logger in the system.
  • Method Details

    • getLoggers

      org.reactivestreams.Publisher<T> getLoggers(ManagedLoggingSystem loggingSystem)
      Collect all existing loggers in the system.
      Parameters:
      loggingSystem - The ManagedLoggingSystem in use
      Returns:
      A Publisher of T
    • getLogger

      org.reactivestreams.Publisher<T> getLogger(ManagedLoggingSystem loggingSystem, @NotBlank @NotBlank String name)
      Find (or create if not found) the named logger in the system.
      Parameters:
      loggingSystem - The ManagedLoggingSystem in use
      name - The name of the logger to find or create
      Returns:
      A Publisher of T
    • setLogLevel

      void setLogLevel(ManagedLoggingSystem loggingSystem, @NotBlank @NotBlank String name, @NotNull io.micronaut.logging.LogLevel level)
      Set the log level for the named logger in the system.
      Parameters:
      loggingSystem - The ManagedLoggingSystem in use
      name - The name of the logger to find or create
      level - The log level to configure