Nostalgic Primordial Monster
Miss any of our Open RFC calls?Watch the recordings here! »

atom-logger

0.1.1 • Public • Published

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.

Keywords

none

Install

npm i atom-logger

DownloadsWeekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • avatar