logback4js
v0.1.1
Published
Logger for JavaScript inspired by Logback.
Downloads
33
Maintainers
Readme
Logback4js
Logger for JavaScript inspired by Logback.
Overview
---
title: "Outline Diagram"
---
erDiagram
LoggerFactory ||--|{ Logger: ""
Logger }o--o{ Appender: ""
| Class | Role | | ---- | ---- | | LoggerFactory | Factory class of Loggers. | | Logger | Manage and log Appenders. | | Appender | Define output destination and append log. |
Appenders
List of Appenders library provides:
- Console Appender
- HTTP POST Appender
- dependencies: axios
- IndexedDB Appender
- LocalStorage Appender
- dependencies: uuid
- Google Analytics Appender
- Google Analytics for Firebase Appender
- dependencies: firebase/analytics
- Slack Appender
- dependencies: @slack/web-api
- Not Tested.
- Twitter Appender
- dependencies: twitter-api-sdk
- Using this Appender in browser, proxy setting is required to bypass CORS.
- Not Tested.
- Microsoft Teams Appender
- dependencies: @microsoft/microsoft-graph-client
- Not Tested.
- Use workflow with custom HTTP POST Appender might be better.
- Discord Appender
- dependencies: discord.js
- Not Tested.
- Use Discord Webhook Appender might be better.
- Discord Webhook Appender
- dependencies: axios
- Not Tested.
Build
Run npm run build
to build the project. The build artifacts will be stored in the dist/
directory.
Running unit tests
Run npm run test
to execute the unit tests via Jest.