# @schablone/logging-react

Latest version **2.0.1** (published 2025-07-03) · 0 weekly downloads

## Install

```sh
npm install @schablone/logging-react
pnpm add @schablone/logging-react
yarn add @schablone/logging-react
bun add @schablone/logging-react
```

## Health

**Score 30/100 (F)** — status: maintenance-mode.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2025-07-03 |
| First published | 2023-02-10 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 66.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Alchemisten AG |
| Maintainers | alchemistgordon, gerby, floriande, technicalalchemist |

## Links

- npm: https://www.npmjs.com/package/@schablone/logging-react
- Repository: https://github.com/alchemisten/schablone-logging
- Homepage: https://github.com/alchemisten/schablone-logging/tree/v2.0.1/libs/logging-react
- Issues: https://github.com/alchemisten/schablone-logging/issues
- npm.io page: https://npm.io/package/@schablone/logging-react

## Dependencies (3)

- [react](https://npm.io/package/react.md) ^19.0.0
- [tslib](https://npm.io/package/tslib.md) ^2.6.2
- [@schablone/logging](https://npm.io/package/@schablone/logging.md) 2.0.1

## Recent versions

- 2.0.1 (latest) — 2025-07-03
- 2.0.0 — 2025-07-03
- 1.2.0 — 2024-06-11
- 1.1.7 — 2023-11-08
- 1.1.2 — 2023-02-10
- 1.1.1 — 2023-02-10

## README

# Logging
This is the monorepo for the `@schablone/logging` package. It provides a logger 
that can be configured based on the current environment. With this you can for 
example only log traces and debug statements on the development server without 
changing any code.

## Content
See the respective package documentation for usage details.

* [`logging`](libs/logging): Base package containing all transports that do not require any
  additional dependencies. This is the only package required for basic console logging.
* [`loggin-react`](libs/logging-react): React specific implementation of the logger. It is providing
  ease-of-use tools. Helpful if the logger is to be used in a larger React application.
* [`logging-transport-sentry-browser`](libs/logging-transport-sentry-browser): Sentry transport implementation for the
  browser. Only required if logs should be sent to Sentry from a browser.
* [`logging-transport-sentry-node`](libs/logging-transport-sentry-node): Sentry transport implementation for node. 
  Only required if logs should be sent to Sentry from a node environment.

## Development
Run `npm start` for an example with a live reload server at
localhost:4200. The example has the ability to log to a Sentry project. To enable
the sentry transport in the example, provide the environment variable `NX_SENTRY_DSN`,
e.g. by creating a `.local.env` file in the logging-react-test app and
adding the entry:

```NX_SENTRY_DSN=my-sentry-dsn```

A minimum of Node.js 20.19 is required for the project since this is required by NX.

### Dependencies
As of now NX doesn't seem to handle dependencies from which only types are imported 
correctly. Therefore, dependencies in the libs are hardcoded in their respective 
package.json files and not automatically managed by NX. Beware when adding
new dependencies or creating new libs.

### Build
Run `npm run build` to create a new build. A new build is automatically created
when a branch is pushed to github.

### New release
Merging to the `main` branch will automatically create a new release via
semantic-release.

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