Skip to content
Snippets Groups Projects
Commit f23b5f23 authored by admin-sigmundd's avatar admin-sigmundd
Browse files

More Fixing

parent 4cf536c3
Branches
Tags
1 merge request!1Update index.test.js, examples/all-options.js, examples/log-to-file.js,...
# log.js # log.js
A real simple logger application A real simple logger application.
May Optional Log to A File and / or a Graylog-Server
## Installation ## Installation
...@@ -14,17 +15,17 @@ Note: The options Part may be omitted, as all parts are optional, but using the ...@@ -14,17 +15,17 @@ Note: The options Part may be omitted, as all parts are optional, but using the
### Methods ### Methods
`log.info('This is an Information')` * `log.info('This is an Information')`
`log.warn('This is a Warning')` * `log.warn('This is a Warning')`
`log.error('This is an Error')` * `log.error('This is an Error')`
`log.debug('This is a Debug Message')` * `log.debug('This is a Debug Message')`
### Options ### Options
```json ```json
{ {
name: 'Name of App', name: 'Name of App. Default: Name of BaseFolder',
hostname: 'Server Hostname', hostname: 'Server Hostname, Default: os.hostname()',
file: 'File to Append Log to', file: 'File to Append Log to',
graylog: [ graylog: [
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment