Detalhes do pacote

nightingale-logger

christophehurpeau2.6kISC16.0.0

Logger for browser and node

nightingale

readme (leia-me)

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 (log de mudanças)

Changelog

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

16.0.0 (2025-03-30)

⚠ BREAKING CHANGES

  • drop node 18

Features

Version bump for dependency: nightingale-levels 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-types

14.2.1 (2023-11-05)

Note: no notable changes

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

14.2.0 (2023-11-04)

Note: no notable changes

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

14.1.0 (2023-07-27)

Note: Version bump only for package nightingale-logger

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)

Bug Fixes

  • fix node global declaration (ab5100b)
  • nightingale-logger: add explicit error message when trying to extends undefined context (1346bd5)

Code Refactoring

Features

  • build for node 16 (30ae3e9)
  • nightingale-sentry: update to v7 (0188b65)

BREAKING CHANGES

  • dropped node 14 and cjs
  • nightingale-sentry: remove deprecated token passed in constructor. Use Sentry object instead and init in the app.
  • 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-logger

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-logger

12.0.1 (2021-12-12)

Note: Version bump only for package nightingale-logger

12.0.0 (2021-12-11)

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-logger

11.8.1 (2021-11-28)

Bug Fixes

  • nightingale-logger: fix build (fe7e3c9)

11.8.0 (2021-11-27)

Features

  • nightingale-logger: support passing Error to any of the basic methods (c1fda3e)

11.7.4 (2021-11-27)

Bug Fixes

11.7.2 (2021-11-27)

Note: Version bump only for package nightingale-logger

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-logger

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-logger

11.3.0 (2021-02-06)

Note: Version bump only for package nightingale-logger

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.0 (2021-01-31)

Note: Version bump only for package nightingale-logger

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

  • add missing def files (a6c0b82)
  • 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-logger

10.0.0 (2020-05-23)

Bug Fixes

  • getConfigForLoggerRecord key can be undefined (260658b)
  • key replace all dot not just the first one (00d4a50)
  • logger key warning (a8097d7)
  • metadata for enter function (a6529b2)
  • metadata is optional (flow) (cd07211)
  • nightingale-logger condition init getconfig (031941c)
  • update dependencies and deprecate Record for LogRecord (2d0a758)
  • warn without key (c9118b3)

Code Refactoring

Features

BREAKING CHANGES

  • requires node 10
  • node 6 no longer supported
  • node 4 is no longer supported
  • remove deprecated dot support

6.2.2 (2019-05-01)

Note: Version bump only for package nightingale-logger

6.2.1 (2019-04-05)

Note: Version bump only for package nightingale-logger

6.2.0 (2019-04-05)

Bug Fixes

  • metadata for enter function (a6529b2)

Features

6.1.0 (2019-02-24)

Bug Fixes

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

Features

6.0.0 (2018-12-03)

Features

BREAKING CHANGES

  • node 6 no longer supported

5.1.0 (2018-06-28)

Features

  • logger: add a method to get the context of the logger (0846714)

5.0.6 (2018-06-17)

Note: Version bump only for package nightingale-logger

5.0.5 (2018-05-27)

Note: Version bump only for package nightingale-logger

5.0.4 (2018-05-26)

Note: Version bump only for package nightingale-logger

5.0.3 (2018-05-26)

Note: Version bump only for package nightingale-logger

5.0.2 (2018-05-10)

Note: Version bump only for package nightingale-logger

5.0.1 (2018-04-22)

Bug Fixes

  • nightingale-logger condition init getconfig (031941c)

5.0.0 (2018-04-21)

Code Refactoring

BREAKING CHANGES

  • node 4 is no longer supported

4.0.0 (2018-03-18)

Bug Fixes

  • getConfigForLoggerRecord key can be undefined (260658b)
  • key replace all dot not just the first one (00d4a50)
  • logger key warning (a8097d7)
  • metadata is optional (flow) (cd07211)
  • warn without key (c9118b3)

Features

BREAKING CHANGES

  • remove deprecated dot support

3.4.0 (2017-04-01)

3.3.0 (2017-03-06)

Features

3.2.0 (2017-02-28)

Features

v3.1.1

  • 55be859 update dependencies (Christophe Hurpeau)
  • c97f1e1 fix: logger key warning (Christophe Hurpeau)
  • 2582acc chore(package): update dependencies (Christophe Hurpeau)

v3.1.0

  • 3641ac2 refactor: update dependencies, add notice and critical (Christophe Hurpeau)

v3.0.1

  • e0b047d fix: getConfigForLoggerRecord key can be undefined (Christophe Hurpeau)

v3.0.0

v3.0.0-rc.2

  • f3e52ab fix: metadata is optional (flow) (Christophe Hurpeau)

v3.0.0-rc.1

  • 39bfe4c refactor: flow (Christophe Hurpeau)

v3.0.0-beta.5

  • 976199b fix: key replace all dot not just the first one (Christophe Hurpeau)

v3.0.0-beta.4

  • b3481cb refactor: breaking: logger doesn't returns itself now (Christophe Hurpeau)

v3.0.0-beta.3

  • 5def4da feat: warn dot in key add key and diplayname (Christophe Hurpeau)

v3.0.0-beta.2

  • 162bb6a fix: warn without key (Christophe Hurpeau)

v3.0.0-beta.1

  • e89d21b refactor: update pob (Christophe Hurpeau)
  • 7bfadc9 feat: update dependencies (Christophe Hurpeau)
  • 8e6bf88 refactor: remove nightingale-debug, use : for child (Christophe Hurpeau)

v1.6.0

  • 73701de nighingale v2 compatibility for nightingale-logger v1 (Christophe Hurpeau)

v1.5.0

  • e54efb4 jsdoc (Christophe Hurpeau)
  • 5086743 babel-plugin-add-jsdoc-annotations@5.1 (Christophe Hurpeau)
  • a9d6ae0 build (Christophe Hurpeau)
  • a0d73fe update dependencies (Christophe Hurpeau)

v1.4.0

  • 309e2ac fix circleci (Christophe Hurpeau)
  • 9bde812 update dependencies (Christophe Hurpeau)

v1.3.0

  • 7b917b7 extendsContext (Christophe Hurpeau)
  • 34e9ca3 pob upgrade (Christophe Hurpeau)

v1.2.0

  • 97958a2 pob, infoTimeEnd, infoSuccessTimeEnd, infoTime, add console.log on error when no loggers (Christophe Hurpeau)

v1.1.1

  • 67c1594 .doclets.yml (Christophe Hurpeau)
  • b7c7e45 pass this.key in isHandling (DEBUG), context and child (Christophe Hurpeau)

v1.1.0

use metadata: for timeEnd { timeMs, readableTime } for enter and exit { functionName }