npm.io
1.0.3 • Published 7 years ago

swift-log

Licence
ISC
Version
1.0.3
Deps
9
Size
8 kB
Vulns
0
Weekly
0

Swift-Logger

Swift-Logger is a node.js log function that exports to a directory and file of your own choosing.

Installation

Use the package manager NPM to install Swift-Logger.

npm i swift-log --save

Usage

import logger from 'swift-log';
const logInfo = logger('logs/info.log');
const logRequests = logger('logs/requests.log');

logInfo('What you write here is stringified to JSON!');

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT