@saninn/logger
    Preparing search index...

    Class SaninnLogger

    Yes, this is a type but it will be used as an interface ;)

    Implements

    Index

    Constructors

    Properties

    ____patchedConsoleForSaninnLogger___: PatchedConsole
    LOG_TYPES_ARRAY: LoggerTypesEnum[] = Helpers.LOG_TYPES_ARRAY

    Accessors

    • get debug(): {
          (...data: any[]): void;
          (message?: any, ...optionalParams: any[]): void;
      }

      Returns { (...data: any[]): void; (message?: any, ...optionalParams: any[]): void }

        • (...data: any[]): void
        • Parameters

          • ...data: any[]

          Returns void

        • (message?: any, ...optionalParams: any[]): void
        • The console.debug() function is an alias for log.

          Parameters

          • Optionalmessage: any
          • ...optionalParams: any[]

          Returns void

          v8.0.0

    • get dir(): {
          (item?: any, options?: any): void;
          (obj: any, options?: InspectOptions): void;
      }

      console.dir does not accept multiparameters if you log logger.dir(x,y) y will be ignored

      Returns {
          (item?: any, options?: any): void;
          (obj: any, options?: InspectOptions): void;
      }

        • (item?: any, options?: any): void
        • Parameters

          • Optionalitem: any
          • Optionaloptions: any

          Returns void

        • (obj: any, options?: InspectOptions): void
        • Uses util.inspect() on obj and prints the resulting string to stdout. This function bypasses any custom inspect() function defined on obj.

          Parameters

          • obj: any
          • Optionaloptions: InspectOptions

          Returns void

          v0.1.101

    • get error(): {
          (...data: any[]): void;
          (message?: any, ...optionalParams: any[]): void;
      }

      Returns { (...data: any[]): void; (message?: any, ...optionalParams: any[]): void }

        • (...data: any[]): void
        • Parameters

          • ...data: any[]

          Returns void

        • (message?: any, ...optionalParams: any[]): void
        • Prints to stderr with newline. Multiple arguments can be passed, with the first used as the primary message and all additional used as substitution values similar to printf(3) (the arguments are all passed to util.format()).

          const code = 5;
          console.error('error #%d', code);
          // Prints: error #5, to stderr
          console.error('error', code);
          // Prints: error 5, to stderr

          If formatting elements (e.g. %d) are not found in the first string then util.inspect() is called on each argument and the resulting string values are concatenated. See util.format() for more information.

          Parameters

          • Optionalmessage: any
          • ...optionalParams: any[]

          Returns void

          v0.1.100

    • get fatal(): {
          (...data: any[]): void;
          (message?: any, ...optionalParams: any[]): void;
      }

      Returns { (...data: any[]): void; (message?: any, ...optionalParams: any[]): void }

        • (...data: any[]): void
        • Parameters

          • ...data: any[]

          Returns void

        • (message?: any, ...optionalParams: any[]): void
        • Prints to stderr with newline. Multiple arguments can be passed, with the first used as the primary message and all additional used as substitution values similar to printf(3) (the arguments are all passed to util.format()).

          const code = 5;
          console.error('error #%d', code);
          // Prints: error #5, to stderr
          console.error('error', code);
          // Prints: error 5, to stderr

          If formatting elements (e.g. %d) are not found in the first string then util.inspect() is called on each argument and the resulting string values are concatenated. See util.format() for more information.

          Parameters

          • Optionalmessage: any
          • ...optionalParams: any[]

          Returns void

          v0.1.100

    • get info(): {
          (...data: any[]): void;
          (message?: any, ...optionalParams: any[]): void;
      }

      Returns { (...data: any[]): void; (message?: any, ...optionalParams: any[]): void }

        • (...data: any[]): void
        • Parameters

          • ...data: any[]

          Returns void

        • (message?: any, ...optionalParams: any[]): void
        • The console.info() function is an alias for log.

          Parameters

          • Optionalmessage: any
          • ...optionalParams: any[]

          Returns void

          v0.1.100

    • get log(): {
          (...data: any[]): void;
          (message?: any, ...optionalParams: any[]): void;
      }

      Returns { (...data: any[]): void; (message?: any, ...optionalParams: any[]): void }

        • (...data: any[]): void
        • Parameters

          • ...data: any[]

          Returns void

        • (message?: any, ...optionalParams: any[]): void
        • Prints to stdout with newline. Multiple arguments can be passed, with the first used as the primary message and all additional used as substitution values similar to printf(3) (the arguments are all passed to util.format()).

          const count = 5;
          console.log('count: %d', count);
          // Prints: count: 5, to stdout
          console.log('count:', count);
          // Prints: count: 5, to stdout

          See util.format() for more information.

          Parameters

          • Optionalmessage: any
          • ...optionalParams: any[]

          Returns void

          v0.1.100

    • get warn(): {
          (...data: any[]): void;
          (message?: any, ...optionalParams: any[]): void;
      }

      Returns { (...data: any[]): void; (message?: any, ...optionalParams: any[]): void }

        • (...data: any[]): void
        • Parameters

          • ...data: any[]

          Returns void

        • (message?: any, ...optionalParams: any[]): void
        • The console.warn() function is an alias for error.

          Parameters

          • Optionalmessage: any
          • ...optionalParams: any[]

          Returns void

          v0.1.100

    Methods

    • This function will be returned as console[log|warn|dir,etc] handle when the output is disabled

      Returns undefined