Skip to content
This repository was archived by the owner on Jul 23, 2018. It is now read-only.

Log messages with debug package; remove verbose option#74

Merged
coryvirok merged 1 commit intorollbar:masterfrom
tremby:debug-logger
Mar 8, 2016
Merged

Log messages with debug package; remove verbose option#74
coryvirok merged 1 commit intorollbar:masterfrom
tremby:debug-logger

Conversation

@tremby
Copy link
Copy Markdown
Contributor

@tremby tremby commented Feb 23, 2016

Instead of plain console.log and console.error calls, this patch adds a logger module which provides equivalent log and error functions.

These are instances of the widely-used debug package, which automatically adds a coloured "Rollbar" prefix, and some timing information.

These messages are namespaced as Rollbar:log and Rollbar:error, and can be enabled/disabled by the user with the DEBUG environment variable (which can include Rollbar:* for all). The verbose option is therefore surplus and has been removed.

But note that unless the user has * in their DEBUG environment variable, the default is now to not log these console messages, which is at odds with with the previous behaviour of always logging the error messages and logging certain other messages based on the verbose option.

Instead of plain console.log and console.error calls, this patch
adds a logger module which provides equivalent log and error
functions.

These are instances of the debug package, and automatically add a
coloured "Rollbar" prefix, and some timing information.

These messages are namespaced as Rollbar:log and Rollbar:error, and
can be enabled/disabled by the user with the DEBUG environment
variable (which can include `Rollbar:*` for all). The `verbose` option
is therefore surplus and has been removed.
@tremby tremby mentioned this pull request Feb 24, 2016
@coryvirok coryvirok merged commit a997b3c into rollbar:master Mar 8, 2016
@tremby tremby deleted the debug-logger branch March 8, 2016 02:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants