Constructors
constructor
new Logger( options?: string | { debug?: boolean ; palette?: { primary?: { info?: string | undefined; success?: string | undefined; debug?: string | undefined; warning?: string | undefined; error?: string | undefined; } | undefined; secondary?: { ...; } | undefined; }; scope?: null | string ; } ) : Logger
Parameters
Optional
options: string | { debug?: boolean ; palette?: { primary?: { info?: string | undefined; success?: string | undefined; debug?: string | undefined; warning?: string | undefined; error?: string | undefined; } | undefined; secondary?: { ...; } | undefined; }; scope?: null | string ; }
Methods
br
br( n?: number ) : void
Returns void
debug
debug( message: string , object?: any ) : void
Parameters
message: string
Optional
object: any
Returns void
error
error( message: string , error?: any ) : void
Parameters
message: string
Optional
error: any
Returns void
hr
hr( n?: number , color?: string , symbol?: string ) : void
Parameters
n: number = 1
color: string = 'white'
symbol: string = '-'
Returns void
info
info( message: string , object?: any ) : void
Parameters
message: string
Optional
object: any
Returns void
set Options
set Options( options?: string | { debug?: boolean ; palette?: { primary?: { info?: string | undefined; success?: string | undefined; debug?: string | undefined; warning?: string | undefined; error?: string | undefined; } | undefined; secondary?: { ...; } | undefined; }; scope?: null | string ; } ) : void
Parameters
Optional
options: string | { debug?: boolean ; palette?: { primary?: { info?: string | undefined; success?: string | undefined; debug?: string | undefined; warning?: string | undefined; error?: string | undefined; } | undefined; secondary?: { ...; } | undefined; }; scope?: null | string ; }
Returns void
success
success( message: string , object?: any ) : void
Parameters
message: string
Optional
object: any
Returns void
warning
warning( message: string , object?: any ) : void
Parameters
message: string
Optional
object: any
Returns void
The logger class, its instances will be the euber loggers.