Home Reference Source Test

References

summary
public

C Log

Fancy lightweight logging utility.

public

F formatError(error: Error): string

Transform an error into a user-readable, colored string.

public

F fromEnv(options: Object, env: Object, environment: string): Log

Utility function that will create a new instance of Log with options taken from environment variables.

public

F indent(string: string, length: number, char: string): string

Add characters at the begenning of every line of a multi-line string.

public

Default configuration

public

Options for Log.

public

T Log~streamFn(level: number): Stream: Function

Function that returns a Stream.