@asciidoctor/core
    Preparing search index...

    Function newLogger

    • Create a new Logger instance with custom behaviour supplied via impl.

      Parameters

      • _name: string
      • impl: {
            add?: (severity: number, message: any, progname: any) => boolean;
            postConstruct?: (this: Logger) => void;
        }

        add(severity, message, progname) — overrides the default add method; severity is always numeric.

        • postConstruct() — called once after the instance is created (this is the logger instance).

      Returns Logger