Class Logger

  • All Implemented Interfaces:
    software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

    @Generated(value="jsii-pacmak/1.96.0 (build 921e240)",
               date="2024-03-28T21:16:42.774Z")
    @Stability(Experimental)
    public class Logger
    extends Component
    (experimental) Project-level logging utilities.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Logger.Builder
      (experimental) A fluent builder for Logger.
      • Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

        software.amazon.jsii.JsiiObject.InitializationMode
      • Nested classes/interfaces inherited from interface software.constructs.IConstruct

        software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Logger​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)  
      protected Logger​(software.amazon.jsii.JsiiObjectRef objRef)  
        Logger​(software.constructs.IConstruct scope)  
        Logger​(software.constructs.IConstruct scope, LoggerOptions options)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void debug​(@NotNull Object... text)
      (experimental) Log a message to stderr with DEBUG severity.
      void error​(@NotNull Object... text)
      (experimental) Log a message to stderr with ERROR severity.
      void info​(@NotNull Object... text)
      (experimental) Log a message to stderr with INFO severity.
      void log​(LogLevel level, @NotNull Object... text)
      (experimental) Log a message to stderr with a given logging level.
      void verbose​(@NotNull Object... text)
      (experimental) Log a message to stderr with VERBOSE severity.
      void warn​(@NotNull Object... text)
      (experimental) Log a message to stderr with WARN severity.
      • Methods inherited from class software.constructs.Construct

        getNode, isConstruct, toString
      • Methods inherited from class software.amazon.jsii.JsiiObject

        jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
      • Methods inherited from interface software.amazon.jsii.JsiiSerializable

        $jsii$toJson
    • Constructor Detail

      • Logger

        protected Logger​(software.amazon.jsii.JsiiObjectRef objRef)
      • Logger

        protected Logger​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      • Logger

        @Stability(Experimental)
        public Logger​(@NotNull
                      software.constructs.IConstruct scope,
                      @Nullable
                      LoggerOptions options)
        Parameters:
        scope - This parameter is required.
        options -
      • Logger

        @Stability(Experimental)
        public Logger​(@NotNull
                      software.constructs.IConstruct scope)
        Parameters:
        scope - This parameter is required.
    • Method Detail

      • debug

        @Stability(Experimental)
        public void debug​(@NotNull
                          @NotNull Object... text)
        (experimental) Log a message to stderr with DEBUG severity.

        Parameters:
        text - strings or objects to print. This parameter is required.
      • error

        @Stability(Experimental)
        public void error​(@NotNull
                          @NotNull Object... text)
        (experimental) Log a message to stderr with ERROR severity.

        Parameters:
        text - strings or objects to print. This parameter is required.
      • info

        @Stability(Experimental)
        public void info​(@NotNull
                         @NotNull Object... text)
        (experimental) Log a message to stderr with INFO severity.

        Parameters:
        text - strings or objects to print. This parameter is required.
      • log

        @Stability(Experimental)
        public void log​(@NotNull
                        LogLevel level,
                        @NotNull
                        @NotNull Object... text)
        (experimental) Log a message to stderr with a given logging level.

        The message will be printed as long as logger.level is set to the message's severity or higher.

        Parameters:
        level - Logging verbosity. This parameter is required.
        text - strings or objects to print. This parameter is required.
      • verbose

        @Stability(Experimental)
        public void verbose​(@NotNull
                            @NotNull Object... text)
        (experimental) Log a message to stderr with VERBOSE severity.

        Parameters:
        text - strings or objects to print. This parameter is required.
      • warn

        @Stability(Experimental)
        public void warn​(@NotNull
                         @NotNull Object... text)
        (experimental) Log a message to stderr with WARN severity.

        Parameters:
        text - strings or objects to print. This parameter is required.