Skip to content
Snippets Groups Projects

Update index.test.js, examples/all-options.js, examples/log-to-file.js,...

5 files
+ 2315
3413
Compare changes
  • Side-by-side
  • Inline

Files

  • 1cd613e5
    remove request · 1cd613e5
    Herfort, Thomas authored
    add got
    replace request with got
    change to 3.0.0
    patch npm packages
    remove graylog
    remove and declare graylog in readme
+ 6
8
# @general/log
A real simple logger application.
May Optional Log to A File and a graylog-server via http or udp.
May Optional Log to A File and a loki-server via http or udp.
>__Graylog__ is no longer supported
## Installation
@@ -31,7 +33,7 @@ e.g.:
will logged as (with default format)
__YYYY-MM-DDTHH:ii:ss SERVER INFO this ["array",8] 4 {"type": "test"}
__YYYY-MM-DDTHH:ii:ss SERVER INFO this ["array",8] 4 {"type": "test"}__
### Formatting
@@ -47,6 +49,8 @@ Possible Setting:
### Options
>__Graylog__ is no longer supported
```json
{
"name": "Name of App. Default: Name of BaseFolder",
@@ -56,12 +60,6 @@ Possible Setting:
"loglevel": "Minimal LogLevel. Default: WARN",
"delimeter": "How to join multiple outputs. Default: (a single space)",
"format": "Format the output. Default: {timestamp}\\t{hostname}\\t{loglevel}\\t{message}",
"graylog": {
"active": "true or false",
"mode": "http or udp, defaults to udp",
"server": "graylog-server",
"port": "graylog-port"
},
"loki": {
"active": "true or false",
"server":"loki-server"
Loading