# lib-log

> A simple Logger with Options!

Latest version **1.0.0** (published 2019-01-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install lib-log
pnpm add lib-log
yarn add lib-log
bun add lib-log
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-01-23 |
| First published | 2019-01-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.6 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Dominik Sigmund |
| Maintainers | sigmundd |

## Links

- npm: https://www.npmjs.com/package/lib-log
- Repository: https://github.com/WebDaD/lib-log
- Homepage: https://github.com/WebDaD/lib-log#readme
- Issues: https://github.com/WebDaD/lib-log/issues
- npm.io page: https://npm.io/package/lib-log

## Recent versions

- 1.0.0 (latest) — 2019-01-23

## README

# log.js

A real simple logger application.
May Optional Log to A File and / or a Graylog-Server

## 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' [, tags])`
* `log.notice('This is a Notice' [, tags])`
* `log.warn('This is a Warning' [, tags])`
* `log.error('This is an Error' [, tags])`
* `log.fatal('This is a Fatal Message' [, tags])`
* `log.debug('This is a Debug Message' [, tags])`

You may add Tags to a logline. These Tags may take the following forms:

* string = 'tag'
* string, seperated by whitespace = 'tag1 tag2 tag3'
* string, seperated by comma = 'tag1,tag2,tag3'
* array of strings = ['tag1', 'tag2', 'tag3']

These Tags will be added to the line with octothorpes added.
(#tag1 #tag2 #tag3) 

### Options

```json
{
  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'
}
```

---
_Source: https://npm.io/package/lib-log · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
