How to use the @cdm-logger/server.ConsoleLogger.create function in @cdm-logger/server

To help you get started, we’ve selected a few @cdm-logger/server examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cdmbase / graphql-nats-subscriptions / src / __tests__ / logger.ts View on Github external
import { ConsoleLogger, IConsoleLoggerSettings } from '@cdm-logger/server';
import * as Logger from 'bunyan';

const settings: IConsoleLoggerSettings = {
    level: 'trace',
};

export const logger: Logger = ConsoleLogger.create('nats-subcscription', settings);
github cdmbase / fullstack-pro / packages / sample-utils / src / logger.ts View on Github external
import { ConsoleLogger, IConsoleLoggerSettings } from '@cdm-logger/server';
import { LoggerLevel } from '@cdm-logger/core';
import * as Logger from 'bunyan';

const settings: IConsoleLoggerSettings = {
    level: process.env.LOG_LEVEL as LoggerLevel  || 'trace',
};

export const logger: Logger = ConsoleLogger.create('@sample-stack-server', settings);

@cdm-logger/server

Universal - Logger

MIT
Latest version published 5 months ago

Package Health Score

53 / 100
Full package analysis