Skip to content

Commit

Permalink
Pino stash
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelMarks committed Apr 14, 2024
1 parent f2edf24 commit 3f35769
Show file tree
Hide file tree
Showing 13 changed files with 594 additions and 794 deletions.
2 changes: 1 addition & 1 deletion config.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as Logger from 'bunyan';
import { Logger } from 'pino';
import { PostgresConnectionOptions } from 'typeorm/driver/postgres/PostgresConnectionOptions';
import { Options as SequelizeOptions } from 'sequelize';
import { IOrmMwConfig, IOrmsOut } from '@offscale/orm-mw/interfaces';
Expand Down
2 changes: 1 addition & 1 deletion config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { networkInterfaces } from 'node:os';

import * as Logger from 'bunyan';
import { Logger } from 'pino';
import { PostgresConnectionOptions } from 'typeorm/driver/postgres/PostgresConnectionOptions';
import * as restify from 'restify';
import { RequestHandler as RestifyRequestHandler } from 'restify';
Expand Down
2 changes: 1 addition & 1 deletion main.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Logger from 'bunyan';
import { Logger } from 'pino';
import { IModelRoute } from '@offscale/nodejs-utils/interfaces';
import { IOrmMwConfig, IOrmsOut } from '@offscale/orm-mw/interfaces';
import { IRoutesMergerConfig, TApp } from '@offscale/routes-merger/interfaces';
Expand Down
4 changes: 2 additions & 2 deletions main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { series, waterfall } from 'async';
import Logger, { createLogger } from 'bunyan';
import { pino, Logger } from 'pino';
import { default as restify, Server } from 'restify';

import { get_models_routes, populateModelRoutes, raise } from '@offscale/nodejs-utils';
Expand All @@ -19,7 +19,7 @@ import { NextFunction } from "express";

/* tslint:disable:no-var-requires */
export const package_ = Object.freeze(require('./package'));
export const logger: Logger = createLogger({ name: 'main' });
export const logger: Logger = pino({ name: 'main' });

/* tslint:disable:no-unused-expression */
process.env['NO_DEBUG'] || logger.info(Object.keys(process.env).sort().map(k => ({ [k]: process.env[k] })));
Expand Down
Loading

0 comments on commit 3f35769

Please sign in to comment.