Skip to content

Cannot Disable Logging - directory is always created #6307

@REPTILEHAUS

Description

@REPTILEHAUS

Im trying to integrate the default winston logger with the Google Cloud stack driver adapter but cant figure out how to integrate it

Do you guys have any pointers on this library ?
https://github.com/googleapis/nodejs-logging-winston

trying this at the moment but its not working

var WinstonLoggerAdapter = require('parse-server/lib/Adapters/Logger/WinstonLoggerAdapter');

const {LoggingWinston} = require('@google-cloud/logging-winston');

const loggingWinston = new LoggingWinston();
....
    loggerAdapter: {
        module: WinstonLoggerAdapter,
        options: {
          level: 'info',
          jsonLogs: true,
          transports: [
            // Add Stackdriver Logging
            loggingWinston,
          ],          
        },          
    },

Similar issues:
#2501
#2550
#1904

Metadata

Metadata

Assignees

No one assigned

    Labels

    bounty:$20Bounty applies for fixing this issue (Parse Bounty Program)type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions