Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Latest commit

 

History

History
35 lines (25 loc) · 881 Bytes

README.md

File metadata and controls

35 lines (25 loc) · 881 Bytes

log.js

A real simple logger application. May Optional Log to A File.

Installation

npm install --save git+ssh://tfs-br-prod.br-edv.brnet.int:22/ArGOS/lib/_git/log

Usage

const Log = require('log') let log = new Log(options)

Note: The options Part may be omitted, as all parts are optional, but using the name is recommended, as without it, the package-name will be used

Methods

  • log.info('This is an Information' )
  • log.notice('This is a Notice' )
  • log.warn('This is a Warning' )
  • log.error('This is an Error' )
  • log.fatal('This is a Fatal Message' )
  • log.debug('This is a Debug Message' )

Options

{
  name: 'Name of App. Default: Name of BaseFolder',
  hostname: 'Server Hostname, Default: os.hostname()',
  file: 'File to Append Log to',
  loglevel: 'Minimal LogLevel. Default: WARN'
}