Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add isEnabled() API Method for Logger Enablement Check #60

Merged
merged 2 commits into from
Sep 6, 2018

Conversation

klaudiosinani
Copy link
Owner

@klaudiosinani klaudiosinani commented Sep 6, 2018

Preview

Adds the ability to check whether the logging functionality of a specific Signale instance is enabled, by utilizing the isEnabled() method:

const signale = require('signale');

signale.success('foo');
//=> ✔  success  foo

signale.isEnabled();
// => true

signale.disable();

signale.success('foo');
//=>

signale.isEnabled();
// => false

Changes

  • Exported isEnabled() as an API method. b3454e1
  • Updated documentation. 5f7b6ff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant