Home Reference Source

References

Class Summary

Static Public Class Summary
public

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

public

The Timber Bunyan transport allows you to seamlessly install Timber in your apps that use bunyan as the logger.

public

This is the base class for all context types

public

The Custom event allows you to past arbitrary events to timber.

public

This is the base class for all event types

public

The HTTP context adds data about the current HTTP request being processed to your logs.This allows you to tail and filter by this data.

public

The HTTP request event tracks incoming and outgoing HTTP requests to your server.

public

The HTTP server request event tracks incoming HTTP requests to your HTTP server.

public

A highly efficient stream for sending logs to Timber via HTTPS.

Function Summary

Static Public Function Summary
public

WinstonFormatter(objectPattern: {"message": *, "level": *, "meta": *, "timestamp": *}): *

public

attach(transports: Array, toStream: Writable, options: Object): {"detach": *}

Attaches a transport stream to a writeable stream.

public

expressMiddleware(options: object): *

The express middleware takes care of automatically logging each http event with the appropriate context events attached.

public

install(transport: Stream)

Installs the timber logger to route all stdout logs to the provided stream

public

log(args: ...*): *

public

stripMetadata(log: *)

Variable Summary

Static Public Variable Summary
public

config(metadata_delimiter: String, append_metadata: boolean, debug_logger: Writable, timestamp_prefix: boolean): {"logger": *, "metadata_delimiter": string, "append_metadata": boolean, "debug_logger": *, "timestamp_prefix": *, ...userConfig: Object}

The configuration options here are use throughout the timber library.