Constructor Summary
Public Constructor | ||
public |
constructor(options: Log~options): Log Creates an instance of |
Member Summary
Public Members | ||
public |
Logging method for each level of |
|
public get |
|
|
public |
options: * |
Method Summary
Public Methods | ||
public |
Build the body. |
|
public |
buildHeader(level: number): string Build the header. |
|
public |
buildMessage(level: number, parts: *[]): string Build the entire message. |
|
public |
Build a message and write it to the stream. |
Public Constructors
public constructor(options: Log~options): Log source
Creates an instance of Log
.
Params:
Name | Type | Attribute | Description |
options | Log~options |
|
Options. |
Public Members
public get level: number: * source
Properties:
Name | Type | Attribute | Description |
level | number | Integer value of |
public options: * source
Public Methods
public buildBody(parts: *[]): string source
Build the body.
Params:
Name | Type | Attribute | Description |
parts | *[] | Parts of the message, not formatted. |
public buildHeader(level: number): string source
Build the header.
Params:
Name | Type | Attribute | Description |
level | number | Level number. |