diff --git a/packages/conf/DittoConf.ts b/packages/conf/DittoConf.ts index 6c06714c..09e6eed2 100644 --- a/packages/conf/DittoConf.ts +++ b/packages/conf/DittoConf.ts @@ -250,7 +250,7 @@ export class DittoConf { level: string; scopes: string[]; } { - const [fmt = 'jsonl', level = 'debug', scopes = ''] = (this.env.get('DEBUG') || '').split(':'); + const [fmt = 'jsonl', level = 'debug', scopes = ''] = (this.env.get('LOG_CONFIG') || '').split(':'); return { fmt: fmt === 'jsonl' ? fmt : 'pretty', level, diff --git a/packages/ditto/utils/logi.ts b/packages/ditto/utils/logi.ts index d8ba9588..4b764201 100644 --- a/packages/ditto/utils/logi.ts +++ b/packages/ditto/utils/logi.ts @@ -52,7 +52,7 @@ const prettyPrint = (msg: LogiValue): string => { }; const pair = (key: string, value: LogiValue | undefined) => { - return `${key} => ${prettyPrint(value || '')}`; + return `${key}: ${prettyPrint(value || '')}`; }; export const createLogiHandler = (conf: DittoConf, defaultHandler: LogiHandler) => (log: LogiLog) => {