Interface Options (4.0.5)

Inheritance

LoggingOptions > Options

Package

@google-cloud/logging-winston!

Properties

inspectMetadata

inspectMetadata?: boolean;

Serialize winston-provided log metadata using util.inspect.

Property Value
TypeDescription
boolean

labels

labels?: {
        [key: string]: string;
    };
Property Value
TypeDescription
{ [key: string]: string; }

level

level?: string;

The default log level. Winston will filter messages with a severity lower than this.

Property Value
TypeDescription
string

levels

levels?: {
        [name: string]: number;
    };

Custom logging levels as supported by winston. This list is used to translate your log level to the Stackdriver Logging level. Each property should have an integer value between 0 (most severe) and 7 (least severe). If you are passing a list of levels to your winston logger, you should provide the same list here.

Property Value
TypeDescription
{ [name: string]: number; }

logname

logname?: string;
Property Value
TypeDescription
string

logName

logName?: string;

The name of the log that will receive messages written to this transport.

Property Value
TypeDescription
string

maxEntrySize

maxEntrySize?: number;
Property Value
TypeDescription
number

prefix

prefix?: string;
Property Value
TypeDescription
string

resource

resource?: MonitoredResource;

The monitored resource that the transport corresponds to. On Google Cloud Platform, this is detected automatically, but you may optionally specify a specific monitored resource. For more information see the [official documentation]https://cloud.google.com/logging/docs/api/reference/rest/v2/MonitoredResource.

Property Value
TypeDescription
MonitoredResource

serviceContext

serviceContext?: ServiceContext;

For logged errors, we provide this as the service context. For more information see [this guide]https://cloud.google.com/error-reporting/docs/formatting-error-messages and the [official documentation]https://cloud.google.com/error-reporting/reference/rest/v1beta1/ServiceContext.

Property Value
TypeDescription
ServiceContext