generated from valora-inc/typescript-app-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
a bit of a shot in the dark to fix an error in revo-interface that implicates this library's logging
- Loading branch information
Showing
2 changed files
with
0 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
import * as Logger from 'bunyan' | ||
import PrettyStream from 'bunyan-prettystream' | ||
|
||
const consoleStream = new PrettyStream() | ||
consoleStream.pipe(process.stdout) | ||
|
||
const streams: Logger.Stream[] = [ | ||
{ | ||
stream: consoleStream, | ||
level: (process.env.LOG_LEVEL as Logger.LogLevel) ?? 'info', | ||
}, | ||
] | ||
|
||
export default Logger.createLogger({ | ||
name: 'farm-bot-apy', | ||
streams, | ||
}) |