Skip to content

Commit

Permalink
remove config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Apr 8, 2024
1 parent 39c8caf commit b49ad0e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
8 changes: 0 additions & 8 deletions packages/logger/config.js

This file was deleted.

3 changes: 1 addition & 2 deletions packages/logger/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import 'dotenv/config'
import { appendFile } from 'fs/promises'
import config from './config.js'
import createLogger from 'logging';

//wrapper for logging: https://www.npmjs.com/package/logging
export default class Logger {

constructor(name, log_level="INFO", split_logs=false) {
this.logger = createLogger?.default? createLogger.default(name): createLogger(name)
this.log_level = new String(config?.log_level? config.log_level : log_level).toUpperCase();
this.log_level = (log_level || 'info').toUpperCase();
this.split_logs = split_logs || false
}

Expand Down

0 comments on commit b49ad0e

Please sign in to comment.