
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
base-logger
Advanced tools
Add a verbalize logger to your base application.
Install with npm:
$ npm install base-logger --save
Add base-logger to an app.
App inherited from base an uses base-option
var App = require('my-app');
var logger = require('base-logger');
create a new
appinstance setting theloggeroption totrue
var app = new App();
app.option('logger', true);
add the base-logger plugin.
app.use(logger());
.logger is now an instance of verbalize on app.
All built in emitter, style, and mode methods are also exposed on
app directly.
// always log this info message
app.info('this is an information message');
// only log this message when app.options.verbose is true
app.verbose.info('this is a verbose information message');
// only log this message when app.options.verbose is false
app.not.verbose.info('this is a not.verbose information message');
Add new logger methods through the .logger
app.logger.emitter('status');
app.status('status message');
//=> "status message"
Logger methods may pass in a modifier function to stylize the output.
app.logger.emitter('status', function() {
return this.yellow(...arguments);
});
app.status('status message');
//=> "status message" <= will be yellow in the console
Add verbalize instance to app as .logger. Adds logger and mode methods to the app directly for easy logging. Sets up a default listener to handle log events and write messages to process.stdout
Pass options.defaultListener = false to disable the default listener.
Params
options {Objects}: Options used when creating the logger.returns {Function}: plugin function to pass to app.useExample
var options {
defaultListener: true
};
app.use(logger(options));
app.verbose.info('info message');
option, enable and disable. See the readme… more | homepagePull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Generate readme and API documentation with verb:
$ npm install verb && npm run docs
Or, if verb is installed globally:
$ verb
Install dev dependencies:
$ npm install -d && npm test
Brian Woodward
Copyright © 2016 Brian Woodward Released under the MIT license.
This file was generated by verb, v0.9.0, on March 06, 2016.
FAQs
Add a verbalize logger to your base application.
We found that base-logger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.