# log4ngx

> A Typescript logging framework for Angular projects

Latest version **22.0.0** (published 2026-11-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install log4ngx
pnpm add log4ngx
yarn add log4ngx
bun add log4ngx
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 22.0.0 |
| Published | 2026-11-27 |
| First published | 2024-12-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 1 |
| Unpacked size | 86.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | David Geary |
| Maintainers | zudnick |
| Keywords | angular, log, log4j, logger, logging, typescript |

## Links

- npm: https://www.npmjs.com/package/log4ngx
- Repository: https://github.com/secondbounce/log4ngx
- Homepage: https://github.com/secondbounce/log4ngx#readme
- Issues: https://github.com/secondbounce/log4ngx/issues
- npm.io page: https://npm.io/package/log4ngx

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.3.0

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 22.0.0 (latest) — 2026-11-27
- 18.0.3-beta1 (beta) — 2024-12-11
- 21.0.0 — 2026-05-03
- 20.1.0 — 2026-01-13
- 20.0.0 — 2025-07-09
- 19.0.1 — 2025-01-28
- 19.0.0 — 2024-12-13
- 18.0.3 — 2024-12-12

## README

# log4ngx

log4ngx is a Typescript logging framework for Angular projects, based on concepts used in Log4j,
Log4net, etc.

## Concepts

### Loggers

`Loggers` provide access to the methods for logging messages at the required `Level`.  Each class - i.e. component, module or service - will usually define its own `Logger` which will identify that class within any messages logged via it.

### LogService

The `LogService` is the factory with which you instantiate `Loggers` in each of the components, services, etc, in which you wish to log messages.  Behind the scenes, it also orchestrates the dispatch of messages from the `Loggers` to the appropriate `Appenders`.

### Appenders

`Appenders` are responsible for sending log entries to the underlying target or service.  Configuration will normally depend on the target/service, but all `Appenders` are configured with the layout format for messages logged to them.

### LogServiceConfig

The `LogService` is configured using an instance of the `LogServiceConfig`, typically created in your application's main module.  The configuration defines the parameters used with each `Appender` and how each `Appender` relates to the various `Loggers`.

For more information about using and configuring log4ngx, see <https://secondbounce.github.io/log4ngx/>.  The demo project (in the _projects/demo/_ folder of the repo) also contains examples of configuring and using the library.

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