LogEntry
Represents a single log entry from the template build process.Extended by
LogEntryStartLogEntryEnd
Constructors
Parameters
| Parameter | Type |
|---|---|
timestamp | Date |
level | LogEntryLevel |
message | string |
Returns
LogEntry
Properties
| Property | Modifier | Type |
|---|---|---|
level | readonly | LogEntryLevel |
message | readonly | string |
timestamp | readonly | Date |
Methods
toString()
Returns
string
LogEntryEnd
Special log entry indicating the end of a build process.Constructors
Parameters
| Parameter | Type |
|---|---|
timestamp | Date |
message | string |
Returns
LogEntryEnd
Properties
| Property | Modifier | Type | Inherited from |
|---|---|---|---|
level | readonly | LogEntryLevel | LogEntry.level |
message | readonly | string | LogEntry.message |
timestamp | readonly | Date | LogEntry.timestamp |
Methods
toString()
Returns
string
LogEntryStart
Special log entry indicating the start of a build process.Constructors
Parameters
| Parameter | Type |
|---|---|
timestamp | Date |
message | string |
Returns
LogEntryStart
Properties
| Property | Modifier | Type | Inherited from |
|---|---|---|---|
level | readonly | LogEntryLevel | LogEntry.level |
message | readonly | string | LogEntry.message |
timestamp | readonly | Date | LogEntry.timestamp |
Methods
toString()
Returns
string
Type Aliases
LogEntryLevel
Functions
defaultBuildLogger()
Parameters
| Parameter | Type | Description |
|---|---|---|
options? | object | Logger configuration options |
options.minLevel? | LogEntryLevel | Minimum log level to display (default: ‘info’) |
Returns
Function
Logger function that accepts LogEntry instances
Parameters
| Parameter | Type |
|---|---|
logEntry | LogEntry |
Returns
void