0.1.1 • Published 10 years ago

atom-logger v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

Atom-Logger Build Status

Reusable logging library for Atom packages.

Getting Started

Install the module with: npm install atom-logger --save

Where my-package is your package name (settings namespace):

Logger = require "atom-logger"
# Inside your Atom package's class
logger = new Logger atom.config, "my-package"

API

Atom Logger acts as a layer on top of Winston. See the Winston documentation for more information.

Examples

Logger = require "atom-logger"
class MyPackage
  activate: () ->
    # Setup your Logger
    @logger = new Logger atom.config, "my-package"
    # Try logging with Winston!
    @logger.log 'info', "This is the message!", {"so":"meta"}

Documentation

Use Biscotto.

# Install CLI Globally
npm install -g biscotto
# Build documentation
biscotto
# Generated Documentation is in doc/ directory

Contributing

Release History

See CHANGELOG.md.

License

Copyright (c) 2014 Glavin Wiechert.
Licensed under the MIT license.

0.1.1

10 years ago

0.1.0

10 years ago