Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Logger

class Logger {
constructor(name: string);
private _logHandler;
private _logLevel;
private _userLogHandler;
get logLevel(): LogLevel;
set logLevel(val: LogLevel);
get logHandler(): LogHandler;
set logHandler(val: LogHandler);
name: string;
get userLogHandler(): LogHandler | null;
set userLogHandler(val: LogHandler | null);
 
debug(...args: unknown[]): void;
error(...args: unknown[]): void;
info(...args: unknown[]): void;
log(...args: unknown[]): void;
setLogLevel(val: LogLevel | LogLevelString): void;
warn(...args: unknown[]): void;
}

§Constructors

§
new Logger(name: string)
[src]

Gives you an instance of a Logger to capture messages according to Firebase's logging scheme.

@param name

The name that the logs will be associated with

§Properties

§
_logHandler
[src]

The main (internal) log handler for the Logger instance. Can be set to a new function in internal package code but not by user.

§
_logLevel
[src]

The log level of the given Logger instance.

§
_userLogHandler
[src]

The optional, additional, user-defined log handler for the Logger instance.

§
logLevel: LogLevel
[src]
§
logHandler: LogHandler
[src]
§
name: string
[src]
§
userLogHandler: LogHandler | null
[src]

§Methods

§
debug(...args: unknown[]): void
[src]

The functions below are all based on the console interface

§
error(...args: unknown[]): void
[src]
§
info(...args: unknown[]): void
[src]
§
log(...args: unknown[]): void
[src]
§
setLogLevel(val: LogLevel | LogLevelString): void
[src]
§
warn(...args: unknown[]): void
[src]