Logger for JavaScript inspired by Logback.
---
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. |
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.
Run npm run build
to build the project. The build artifacts will be stored in the dist/
directory.
Run npm run test
to execute the unit tests via Jest.