Détail du package

nightingale

christophehurpeau2.4kISC16.2.0

Logger for browser and node

logger

readme

Logger for browser and node, see nightingale to get started !

📦 Packages

This repository is a monorepo that we manage using Yarn Workspaces.

Package Version Description
nightingale Logger for browser and node
nightingale-ansi-formatter Nightingale ANSI formatter
nightingale-app-console nightingale default config and logger for app
nightingale-app-react-native React Native and Expo logger for application
nightingale-browser-console Deprecated: use BrowserConsoleHandler from nightingale
nightingale-browser-console-formatter Deprecated: use NightingaleBrowserConsoleFormatter from nightingale
nightingale-console Deprecated: use ConsoleHandler from nightingale
nightingale-console-output Nightingale console output
nightingale-debug Deprecated: use createFindDebugLevel from nightingale instead
nightingale-formatter Deprecated: use nightingale package instead
nightingale-html-formatter Deprecated: use HTMLFormatter from nightingale instead.
nightingale-json-formatter Deprecated: use JSONFormatter from nightingale
nightingale-level-names Nightingale level values to level names
nightingale-levels Nightingale levels
nightingale-logger Logger for browser and node
nightingale-markdown-formatter Deprecated: use MarkdownFormatter from nightingale
nightingale-raw-formatter Deprecated: use RawFormatter from nightingale
nightingale-react-native-console React Native and Expo handler for nightingale
nightingale-sentry Sentry handler for nightingale
nightingale-slack Slack handler for nightingale
nightingale-string Deprecated, use String from nightingale instead
nightingale-types Nightingale types for typescript
nightingale-unit-testing nightingale default config for unit testing
nightingale-web-processor Nightingale web processor
nightingale-winston-adapter Winston adapter handler for nightingale

changelog

Changelog

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

16.2.0 (2025-03-30)

Features

  • improve format object and allow overriding styles (f9e787c), closes #284

16.1.0 (2025-03-30)

Features

  • support async in logger cli group (e27d763)

16.0.0 (2025-03-30)

⚠ BREAKING CHANGES

  • drop node 18

Features

Version bump for dependency: nightingale-levels Version bump for dependency: nightingale-logger Version bump for dependency: nightingale-types

15.0.0 (2023-12-25)

⚠ BREAKING CHANGES

  • update babel and drop browser modern version

Features

  • update babel and drop browser modern version (5c76abc)

Version bump for dependency: nightingale-levels Version bump for dependency: nightingale-logger Version bump for dependency: nightingale-types Version bump for dependency: nightingale-string

14.2.1 (2023-11-05)

Note: no notable changes

Version bump for dependency: nightingale-levels Version bump for dependency: nightingale-logger Version bump for dependency: nightingale-types Version bump for dependency: nightingale-string

14.2.0 (2023-11-04)

Features

  • nightingale: improve unhandled error display (a56473e) Version bump for dependency: nightingale-levels Version bump for dependency: nightingale-logger Version bump for dependency: nightingale-types Version bump for dependency: nightingale-string

14.1.0 (2023-07-27)

Note: Version bump only for package nightingale

14.0.2 (2023-06-30)

Bug Fixes

  • typo types for typescript exports (1eb20e4)

14.0.1 (2023-06-30)

Bug Fixes

  • add missing type in exports for latest typescript (8897fd6)

14.0.0 (2023-06-30)

⚠ BREAKING CHANGES

  • deps: require node 18
  • requires node 18

Features

Miscellaneous Chores

  • deps: update dependency @pob/root to v8 (#760) (22dc3cc)

13.0.0 (2022-11-19)

Code Refactoring

Features

BREAKING CHANGES

  • dropped node 14 and cjs
  • drop node 14

12.1.4 (2022-02-05)

Bug Fixes

  • better browser support when global is not defined (194c252)
  • cjs build (2e24ac5)

12.1.3 (2022-01-15)

Note: Version bump only for package nightingale

12.1.2 (2022-01-02)

Bug Fixes

  • main esm for jest which supports esm but not exports (98789fa)

12.1.1 (2022-01-01)

Bug Fixes

  • properly configure package type (2e0cbf5)

12.1.0 (2021-12-15)

Note: Version bump only for package nightingale

12.0.1 (2021-12-12)

Note: Version bump only for package nightingale

12.0.0 (2021-12-11)

Bug Fixes

  • missed legacy pob-babel (82a38fa)

Build System

  • node 14 and remove dev builds (432ecd1)

Features

BREAKING CHANGES

  • use named imports instead of default exports
  • requires node 14

11.9.0 (2021-11-28)

Note: Version bump only for package nightingale

11.8.1 (2021-11-28)

Note: Version bump only for package nightingale

11.8.0 (2021-11-27)

Note: Version bump only for package nightingale

11.7.4 (2021-11-27)

Bug Fixes

11.7.2 (2021-11-27)

Note: Version bump only for package nightingale

11.7.1 (2021-06-29)

Bug Fixes

  • update pob-babel to bring back webpack 4 support (4887431)

11.7.0 (2021-03-29)

Note: Version bump only for package nightingale

11.6.0 (2021-03-21)

Features

  • update dependencies and browserlist config (81d2340)

11.5.2 (2021-02-14)

Note: Version bump only for package nightingale

11.5.1 (2021-02-06)

Bug Fixes

  • listenUnhandledErrors default logger name (05c389a)

11.5.0 (2021-02-06)

Features

  • better support unhandled errors (b666145)

11.4.0 (2021-02-06)

Features

  • add initial support for react-native (188e5a0)

11.3.0 (2021-02-06)

Note: Version bump only for package nightingale

11.2.0 (2021-02-04)

Bug Fixes

  • missing "browser" in package.json (cce81cb)

Features

  • prefer named exports and deprecate some default exports (4697828)

11.1.1 (2021-01-31)

Note: Version bump only for package nightingale

11.1.0 (2021-01-31)

Note: Version bump only for package nightingale

11.0.5 (2021-01-18)

Bug Fixes

  • update pob-babel for better support (44119b7)

11.0.3 (2021-01-18)

Bug Fixes

11.0.1 (2021-01-18)

Bug Fixes

  • bring back support for webpack 4 (9134da3)

11.0.0 (2020-12-12)

Bug Fixes

  • update devdeps and fix lerna config (79e97dd)

Code Refactoring

  • use yarn 2, requires node 12 (73a85dd)

BREAKING CHANGES

  • drop support for node 10

10.0.1 (2020-05-23)

Note: Version bump only for package nightingale

10.0.0 (2020-05-23)

Bug Fixes

  • main path (1b54053)
  • missing property stop (fff57a0)
  • node 4 (6dc83a8)
  • replace process.exit by throw new Error (defb009)
  • strict check config keys (220033d)
  • update dependencies and deprecate Record for LogRecord (2d0a758)

Code Refactoring

Features

BREAKING CHANGES

  • requires node 10
  • node 6 no longer supported
  • node 4 is no longer supported
  • remove deprecated dot support
  • can throw errors in dev mode

9.2.3 (2019-05-01)

Note: Version bump only for package nightingale

9.2.2 (2019-04-05)

Note: Version bump only for package nightingale

9.2.1 (2019-04-05)

Note: Version bump only for package nightingale

9.2.0 (2019-04-05)

Features

9.1.0 (2019-02-24)

Bug Fixes

  • update dependencies and deprecate Record for LogRecord (2d0a758)

Features

9.0.1 (2018-12-03)

Note: Version bump only for package nightingale

9.0.0 (2018-12-03)

Features

BREAKING CHANGES

  • node 6 no longer supported

8.0.8 (2018-06-28)

Note: Version bump only for package nightingale

8.0.7 (2018-06-17)

Note: Version bump only for package nightingale

8.0.6 (2018-06-17)

Note: Version bump only for package nightingale

8.0.5 (2018-05-27)

Note: Version bump only for package nightingale

8.0.4 (2018-05-26)

Note: Version bump only for package nightingale

8.0.3 (2018-05-26)

Note: Version bump only for package nightingale

8.0.2 (2018-05-10)

Bug Fixes

8.0.1 (2018-04-22)

Note: Version bump only for package nightingale

8.0.0 (2018-04-21)

Code Refactoring

BREAKING CHANGES

  • node 4 is no longer supported

7.0.0 (2018-03-18)

Bug Fixes

Features

BREAKING CHANGES

  • remove deprecated dot support
  • can throw errors in dev mode
<a name="6.2.1"></a>

6.2.1 (2017-04-01)

Bug Fixes

6.2.0 (2017-04-01)

6.1.1 (2017-03-06)

6.1.0 (2017-02-28)

Features

6.0.3 (2017-01-05)

Bug Fixes

6.0.2 (2017-01-05)

Bug Fixes

  • replace process.exit by throw new Error (d6862d2)
  • strict check config keys (ffac7b7)

BREAKING CHANGES

  • can throw errors in dev mode

nr publish### v6.0.1

  • c554afd docs: add link to nightingale-app-console (Christophe Hurpeau)
  • c802ba2 fix: replace process.exit by throw new Error (Christophe Hurpeau)

v6.0.0

  • f6643b4 chore(package): nightingale-logger@3.0.0 (Christophe Hurpeau)

v6.0.0-rc.1

  • 8252742 chore(package): update dependencies (Christophe Hurpeau)

v6.0.0-beta.2

  • bc84211 chore(package): nightingale-logger@^3.0.0-beta.3 (Christophe Hurpeau)

v6.0.0-beta.1

  • 1a5f8a2 update dependencies (Christophe Hurpeau)
  • bdf0507 breaking: nightingale-logger@3 (beta) and remove nightingale-debug (Christophe Hurpeau)
  • ebb1b98 chore: pob update (Christophe Hurpeau)
  • 47a2917 refactor: build (Christophe Hurpeau)

v5.0.0

v5.0.0-beta.2

  • 078c60c nightingale-logger 1.6 or 2.0 (Christophe Hurpeau)

v5.0.0-beta.1

  • d3c49f7 breaking: remove minimatch, configure refacto, getConfigForLoggerRecord (Christophe Hurpeau)

v4.10.0

  • 32b1dcd docs(readme): formatter (Christophe Hurpeau)
  • f33d301 update dependencies (Christophe Hurpeau)

v4.9.0

  • 3e1db31 update dependencies (Christophe Hurpeau)

v4.8.0

  • a645c25 add logger.time() in example (Christophe Hurpeau)
  • 9eb9b9d upgrade pob and update dependencies (Christophe Hurpeau)

v4.7.1

  • 63b6986 listenUnhandledErrors logger name (Christophe Hurpeau)

v4.7.0

  • 29f819d listenUnhandledErrors (Christophe Hurpeau)

v4.6.0

  • aa0a783 config: function addConfig (Christophe Hurpeau)

v4.5.0

  • cbe90a8 pob (Christophe Hurpeau)
  • 0d5a533 add badge travisci (Christophe Hurpeau)

v4.4.0

  • 48b16cf update dependencies (Christophe Hurpeau)

v4.3.1

  • 23fe946 fix configure pattern and handler (Christophe Hurpeau)

v4.3.0

You can use context to add data to each log.

import Logger from 'nightingale';
const loggerMyService = new Logger('app.myService');

export function someAction(arg1) {
const logger = loggerMyService.context({ arg1 });
logger.info('starting');
// do stuff
logger.info('done');
}
  • 9ce737f nightingale-logger, context and child (Christophe Hurpeau)
  • f642e84 eslint dependencies (Christophe Hurpeau)

v4.2.0

  • 563f196 nightingale-logger@1.1.0, nightingale-json-formatter@1.1.0 (Christophe Hurpeau)

v4.1.0

  • 025cf6a nightingale-logger (Christophe Hurpeau)

v4.0.0

  • 44bec38 nightingale v4 (Christophe Hurpeau)

v3.0.5

  • d207afe springbokjs-library@15 (Christophe Hurpeau)
  • 21cd404 fix browser main field in package.json (Christophe Hurpeau)
  • b4cfcdb build (Christophe Hurpeau)

v3.0.4

  • aea18e7 fix minLevel when is set to LogLevel.ALL (Christophe Hurpeau)

v3.0.3

  • 3af8094 fix when contextStyles is undefined (Christophe Hurpeau)

v3.0.2

  • 2a26228 fix debugFromLocalStorage in browser (Christophe Hurpeau)

v3.0.1

  • 9bd710a fix previous commit :/ (Christophe Hurpeau)

v3.0.0

import { ConsoleLogger, LogLevel } from 'nightingale';
const logger = new ConsoleLogger('app', LogLevel.INFO);

If DEBUG=app, logger's min level stayed at INFO. Now, it display all log !

  • 54e293d browser localStorage.DEBUG, minLevel is now ignored if the logger`s name is in the debug (Christophe Hurpeau)

v2.3.0

  • 15e77f3 upgrade dependencies, lint (Christophe Hurpeau)

v2.2.0

  • b5f09be upgrade dependencies, jsdoc, lint, coveralls (Christophe Hurpeau)

v2.1.2

  • 70ebab9 use alouette only in node (Christophe Hurpeau)

v2.1.1

  • c4159ba jspm config (Christophe Hurpeau)

v2.1.0

  • 267e2b3 use alouette (Christophe Hurpeau)

v2.0.0

  • a7d6473 browser output and update springbokjs-library (Christophe Hurpeau)

v1.2.0

  • 84a8f79 DEBUG=* and DEBUG=app where name = app.something (Christophe Hurpeau)

v1.1.1

  • 3fe9483 Update README.md (Christophe Hurpeau)
  • a9828e6 rename inspect to inspectValue (Christophe Hurpeau)
  • c079ed7 fix when styles is undefined (Christophe Hurpeau)

v1.1.0

  • 91d87c1 update dependencies, use process.env.DEBUG and add doc (Christophe Hurpeau)

v1.0.1

  • 8f68ef0 fix min level in Handler (Christophe Hurpeau)