2.1.0 • Published 8 months ago

@loglayer/transport-log4js v2.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Log4js Transport for LogLayer

NPM Version NPM Downloads TypeScript

The Log4js transport for the LogLayer logging library.

Log4js-node is a conversion of the Log4j framework to Node.js.

Important Notes

  • Log4js only works in Node.js environments (not in browsers)
  • By default, logging is disabled and must be configured via level or advanced configuration
  • Consider using Winston as an alternative if Log4js configuration is too complex

Installation

npm install loglayer @loglayer/transport-log4js log4js

Usage

import log4js from 'log4js'
import { LogLayer } from 'loglayer'
import { Log4JsTransport } from "@loglayer/transport-log4js"

const logger = log4js.getLogger()

// Enable logging output
logger.level = "trace"

const log = new LogLayer({
  transport: new Log4JsTransport({
    logger
  })
})

Documentation

For more details, visit https://loglayer.dev/transports/log4js

2.1.0

8 months ago

2.0.4

10 months ago

2.0.3

10 months ago

2.0.2

10 months ago

2.0.1

10 months ago

2.0.0

10 months ago

1.0.15

11 months ago

1.0.14

11 months ago

1.0.13

11 months ago

1.0.12

11 months ago

1.0.11

11 months ago

1.0.10

11 months ago

1.0.9

11 months ago

1.0.8

12 months ago

1.0.7

12 months ago

1.0.6

12 months ago

1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago