hapijs / good

hapi process monitoring
Other
525 stars 160 forks source link

now good-file is no longer maintained #612

Closed nexcode closed 5 years ago

nexcode commented 5 years ago

I used to write logs this way:

{
        plugin: good,
        options: {
            reporters: {
                file: [
                    {
                        module: 'good-squeeze',
                        name: 'Squeeze',
                        args: [
                            {
                                request: '*',
                                error: '*',
                                log: '*',
                            },
                        ],
                    },
                    {
                        module: 'good-console',
                    },
                    {
                        module: 'good-file',
                        args: ['log/log.log'],
                    },
                ],
            },
        },
    }

Now there are only examples with stdout in the documentation. How to write logs to the file now?

sassrf commented 5 years ago

It's documented here, but I can't get it to work.

I'm getting "myReporter" at position 1 does not match any of the allowed types error.

lock[bot] commented 4 years ago

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.