Serialize winston-provided log metadata using util.inspect.
Property Value
Type
Description
boolean
labels
labels?: {
[key: string]: string;
};
Property Value
Type
Description
{
[key: string]: string;
}
level
level?: string;
The default log level. Winston will filter messages with a severity lower than this.
Property Value
Type
Description
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
Type
Description
{
[name: string]: number;
}
logname
logname?: string;
Property Value
Type
Description
string
logName
logName?: string;
The name of the log that will receive messages written to this transport.
Property Value
Type
Description
string
maxEntrySize
maxEntrySize?: number;
Property Value
Type
Description
number
prefix
prefix?: string;
Property Value
Type
Description
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.