split up http into adapters
This commit is contained in:
parent
afc1843fdb
commit
d67d07cba6
11 changed files with 230 additions and 228 deletions
|
|
@ -21,12 +21,11 @@ const loggerCache = new Map<string, pino.Logger>();
|
|||
function createTransports(serviceName: string): any {
|
||||
const targets: any[] = [];
|
||||
// const isDev = loggingConfig.LOG_ENVIRONMENT === 'development';
|
||||
|
||||
// Console transport
|
||||
if (loggingConfig.LOG_CONSOLE) {
|
||||
targets.push({
|
||||
target: 'pino-pretty',
|
||||
level: loggingConfig.LOG_LEVEL,
|
||||
level: 'error', // Only show errors on console
|
||||
options: {
|
||||
colorize: true,
|
||||
translateTime: 'yyyy-mm-dd HH:MM:ss.l',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue