Log
Transforms a log message or object into a rich structured format that timber expects, ex 'log message' @timber.io {"dt": "…", "level": "info", "context": {…}} see https://github.com/timberio/log-event-json-schema for specs
Constructor Summary
Public Constructor | ||
public |
constructor(message: String, context: Object) |
Member Summary
Public Members | ||
public |
Structured log data |
|
public |
Reference to original log message |
Method Summary
Public Methods | ||
public |
Appends data to the end of the structured log object |
|
public |
Transforms the structured log into a string i.e. |
|
public |
Convenience function for setting the log level |
Public Constructors
Public Members
Public Methods
public append(data: Object) source
Appends data to the end of the structured log object
Params:
Name | Type | Attribute | Description |
data | Object |