Additional parameters for . For more information on parameters, please see [winston-transport](https://github.com/winstonjs/winston-transport/blob/0e5e4c0056188a74e24407ee066902fb113bd8de/index.js#L8).
The default log level. Winston will filter messages with a severity lower than this.
levels
levels?:{[name:string]:number;};
Custom logging levels as supported by winston. This list is used to translate your log level to the Cloud 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.
logname
logname?:string;
logName
logName?:string;
The name of the log that will receive messages written to this transport.
maxEntrySize
maxEntrySize?:number;
prefix
prefix?:string;
redirectToStdout
redirectToStdout?:boolean;
Boolen flag that opts-in redirecting the output to STDOUT instead of ingesting logs to Cloud Logging using Logging API. Defaults to . Redirecting logs can be used in Google Cloud environments with installed logging agent to delegate log ingestions to the agent. Redirected logs are formatted as one line Json string following the structured logging guidelines.
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.
Boolean flag indicating if "message" field should be used to store structured, non-text data inside jsonPayload field. This flag applies only when is set. By default this value is true
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Interface Options (6.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [6.0.0 (latest)](/nodejs/docs/reference/logging-winston/latest/logging-winston/options)\n- [5.2.2](/nodejs/docs/reference/logging-winston/5.2.2/logging-winston/options)\n- [5.1.8](/nodejs/docs/reference/logging-winston/5.1.8/logging-winston/options)\n- [4.2.2](/nodejs/docs/reference/logging-winston/4.2.2/logging-winston/options)\n- [4.1.3](/nodejs/docs/reference/logging-winston/4.1.3/logging-winston/options)\n- [4.0.5](/nodejs/docs/reference/logging-winston/4.0.5/logging-winston/options) \n\nInheritance\n-----------\n\nLoggingOptions \\\u003e Options\n\nPackage\n-------\n\n[@google-cloud/logging-winston](../overview.html)\n\nProperties\n----------\n\n### defaultCallback\n\n defaultCallback?: Callback;\n\n### format\n\n format?: any;\n\nAdditional parameters for . For more information on parameters, please see \\[winston-transport\\](https://github.com/winstonjs/winston-transport/blob/0e5e4c0056188a74e24407ee066902fb113bd8de/index.js#L8).\n\n### handleExceptions\n\n handleExceptions?: boolean;\n\n### handleRejections\n\n handleRejections?: boolean;\n\n### inspectMetadata\n\n inspectMetadata?: boolean;\n\nSerialize winston-provided log metadata using `util.inspect`.\n\n### labels\n\n labels?: {\n [key: string]: string;\n };\n\n### level\n\n level?: string;\n\nThe default log level. Winston will filter messages with a severity lower than this.\n\n### levels\n\n levels?: {\n [name: string]: number;\n };\n\nCustom logging levels as supported by winston. This list is used to translate your log level to the Cloud 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.\n\n### logname\n\n logname?: string;\n\n### logName\n\n logName?: string;\n\nThe name of the log that will receive messages written to this transport.\n\n### maxEntrySize\n\n maxEntrySize?: number;\n\n### prefix\n\n prefix?: string;\n\n### redirectToStdout\n\n redirectToStdout?: boolean;\n\nBoolen flag that opts-in redirecting the output to STDOUT instead of ingesting logs to Cloud Logging using Logging API. Defaults to . Redirecting logs can be used in Google Cloud environments with installed logging agent to delegate log ingestions to the agent. Redirected logs are formatted as one line Json string following the structured logging guidelines.\n\n### resource\n\n resource?: MonitoredResource;\n\nThe 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\\]\u003chttps://cloud.google.com/logging/docs/api/reference/rest/v2/MonitoredResource\u003e.\n\n### serviceContext\n\n serviceContext?: ServiceContext;\n\nFor logged errors, we provide this as the service context. For more information see \\[this guide\\]\u003chttps://cloud.google.com/error-reporting/docs/formatting-error-messages\u003e and the \\[official documentation\\]\u003chttps://cloud.google.com/error-reporting/reference/rest/v1beta1/ServiceContext\u003e.\n\n### silent\n\n silent?: boolean;\n\n### useMessageField\n\n useMessageField?: boolean;\n\nBoolean flag indicating if \"message\" field should be used to store structured, non-text data inside jsonPayload field. This flag applies only when is set. By default this value is true"]]