Logger
A logger used in all console outputs.
Should never be instantiated.
Log levels, --silent
-flags etc. are handled automatically by gulplog.
Test:
Static Member Summary
Static Public Members | ||
public static get |
An instance of chalk. |
|
public static get |
An instance of LogFormat. |
|
public static get |
The prefix added to each log. |
|
public static get |
The log types available. |
Static Private Members | ||
private static |
The log types handled. |
Static Method Summary
Static Public Methods | ||
public static |
applyOptions(options: Object) Apply options to the logger. |
|
public static |
Print debug messages. |
|
public static |
Print error messages. |
|
public static |
Print regular logs. |
|
public static |
pipeLastLine(stream: node.stream.Readable) Pipes a readable stream and logs the last line of each chunk processed. |
|
public static |
Print warnings. |
Static Public Members
public static get prefix: string source
The prefix added to each log. Should always equal fancy-log's prefix.
See:
Static Private Members
Static Public Methods
public static applyOptions(options: Object) source
Apply options to the logger. Should only be called once..
Test:
public static debug(message: ...string) source
Print debug messages.
Params:
Name | Type | Attribute | Description |
message | ...string | The message(s) to print. |
Test:
public static error(message: ...string) source
Print error messages.
Params:
Name | Type | Attribute | Description |
message | ...string | The message(s) to print. |
public static info(message: ...string) source
Print regular logs.
Params:
Name | Type | Attribute | Description |
message | ...string | The message(s) to print. |
Test:
public static pipeLastLine(stream: node.stream.Readable) source
Pipes a readable stream and logs the last line of each chunk processed.
Params:
Name | Type | Attribute | Description |
stream | node.stream.Readable | The stream to pipe. |