-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
import Logger, { configure, Level } from 'nightingale'; | ||
import Logger, { configure, Level, listenUnhandledErrors } from 'nightingale'; | ||
import ConsoleHandler from 'nightingale-console'; | ||
|
||
configure([{ handlers: [new ConsoleHandler(Level.INFO)] }]); | ||
listenUnhandledErrors(); | ||
|
||
const logger = new Logger('nightingale:console'); | ||
|
||
logger.debug('test'); | ||
logger.info('test'); | ||
logger.warn('test'); | ||
|
||
new Promise((resolve, reject) => { | ||
reject(new Error('Testing uncaught error')); | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Large diffs are not rendered by default.