Class LoggersEndpoint

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static boolean DEFAULT_ENABLED
      Endpoint default enabled.
      static boolean DEFAULT_SENSITIVE
      Endpoint default sensitivity.
      static java.lang.String NAME
      Endpoint name.
      static java.lang.String PREFIX
      Endpoint configuration prefix.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isWriteSensitive()  
      org.reactivestreams.Publisher<java.util.Map<java.lang.String,​java.lang.Object>> logger​(@NotBlank java.lang.String name)  
      org.reactivestreams.Publisher<java.util.Map<java.lang.String,​java.lang.Object>> loggers()  
      void setLogLevel​(@NotBlank java.lang.String name, io.micronaut.logging.LogLevel configuredLevel)  
      void setWriteSensitive​(boolean writeSensitive)
      Determines whether modifications to the log level should require authentication.
      • Methods inherited from class java.lang.Object

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

      • PREFIX

        public static final java.lang.String PREFIX
        Endpoint configuration prefix.
        See Also:
        Constant Field Values
      • DEFAULT_ENABLED

        public static final boolean DEFAULT_ENABLED
        Endpoint default enabled.
        See Also:
        Constant Field Values
      • DEFAULT_SENSITIVE

        public static final boolean DEFAULT_SENSITIVE
        Endpoint default sensitivity.
        See Also:
        Constant Field Values
    • Constructor Detail

      • LoggersEndpoint

        public LoggersEndpoint​(ManagedLoggingSystem loggingSystem,
                               LoggersManager<java.util.Map<java.lang.String,​java.lang.Object>> loggersManager)
        Parameters:
        loggingSystem - the LoggingSystem
        loggersManager - the LoggersManager
    • Method Detail

      • loggers

        @Read
        @SingleResult
        public org.reactivestreams.Publisher<java.util.Map<java.lang.String,​java.lang.Object>> loggers()
        Returns:
        the loggers as a Mono
      • logger

        @Read
        @SingleResult
        public org.reactivestreams.Publisher<java.util.Map<java.lang.String,​java.lang.Object>> logger​(@NotBlank @Selector
                                                                                                            @NotBlank java.lang.String name)
        Parameters:
        name - The name of the logger to find
        Returns:
        the LogLevel (both configured and effective) of the named logger
      • setLogLevel

        @Write
        @Sensitive(property="write-sensitive")
        public void setLogLevel​(@NotBlank @Selector
                                @NotBlank java.lang.String name,
                                @Nullable
                                io.micronaut.logging.LogLevel configuredLevel)
        Parameters:
        name - The name of the logger to configure
        configuredLevel - The LogLevel to set on the named logger
      • isWriteSensitive

        public boolean isWriteSensitive()
        Returns:
        True if modifications require authentication
      • setWriteSensitive

        public void setWriteSensitive​(boolean writeSensitive)
        Determines whether modifications to the log level should require authentication. Default value (true).
        Parameters:
        writeSensitive - The write sensitivity option.