# nuclide-logging

> Provides logging on both Nuclide client and Nuclide server

Latest version **0.0.35** (published 2015-11-25) · SEE LICENSE IN LICENSE license · 0 weekly downloads

## Install

```sh
npm install nuclide-logging
pnpm add nuclide-logging
yarn add nuclide-logging
bun add nuclide-logging
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.35 |
| Published | 2015-11-25 |
| First published | 2015-05-22 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 7711 |
| Maintainers | fb |

## Links

- npm: https://www.npmjs.com/package/nuclide-logging
- Repository: https://github.com/facebook/nuclide
- Homepage: https://github.com/facebook/nuclide#readme
- Issues: https://github.com/facebook/nuclide/issues
- npm.io page: https://npm.io/package/nuclide-logging

## Dependencies (2)

- [log4js](https://npm.io/package/log4js.md) 0.6.27
- [nuclide-commons](https://npm.io/package/nuclide-commons.md) 0.0.35

## Recent versions

- 0.0.35 (latest) — 2015-11-25
- 0.0.34 — 2015-11-12
- 0.0.32 — 2015-09-15
- 0.0.31 — 2015-09-15
- 0.0.30 — 2015-08-07
- 0.0.29 — 2015-08-06
- 0.0.28 — 2015-08-06
- 0.0.26 — 2015-08-03
- 0.0.25 — 2015-08-02
- 0.0.24 — 2015-07-06
- 0.0.23 — 2015-07-06
- 0.0.22 — 2015-06-26
- 0.0.21 — 2015-06-23
- 0.0.20 — 2015-06-23
- 0.0.19 — 2015-06-23
- … 11 more at https://npm.io/package/nuclide-logging/versions

## README

# nuclide-logging

A node package designed for logging on both Nuclide client and Nuclide server. It is based on [log4js](https://www.npmjs.com/package/log4js) with the ability to lazy initialize and update config after initialized.

## Usage

```js
var logger = require('nuclide-logging').getLogger();

logger.debug(...);
logger.error(...);
```

## Update Configuration

The logger will use the default configuration in `nuclide-logging/lib/config.js` to initialize nested log4js logger. However, one could update its configuration by calling
```js
var logger1 = require('nuclide-logging').getLogger();
require('nuclide-logging').updateConfig(config, option);
// logger1's configuration is updated as well.
```
Note this will also update the configuration of logger who has already been created.

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