All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
6.3.2 (2024-09-24)
- Upgrade
prettier-elastic
to v3 (acd53a0)
6.3.1 (2021-10-08)
6.3.0 (2021-10-06)
6.2.0 (2021-09-10)
- Log: Allow to inject undecorated new lines (140ddfe)
- Bump dependencies (4415866)
6.1.0 (2021-09-02)
- Writer: Allow to customize logger applicability (8d2a4e6)
6.0.0 (2019-04-10)
- rename lib/writer to lib/abstract-writer (60388cb)
- replace registerMaster with getMasterWriter (432b73e)
- lib/register-master was removed in favor of lib/get-master-writer Writer should be registered using 'register' function as returned by get-master-writer
- Writer base class was moved from lib/writer to lib/abstract-writer
5.1.0 (2019-04-08)
- lib/writer (7cd4bf1)
5.0.0 (2019-03-19)
- Level indexes were reversed to match RFC 5424.
Now
error
level has0
index , anddebug
4
4.0.1 (2019-03-18)
4.0.0 (2019-03-18)
- move writer-utils to lib (429aec5)
- LOG_TIME recommendation and utils (6af9400), closes #9
- make 'info' level default (4a1fa53)
- not applicable syslog levels (57c879a)
- upgrade linter (eba6bb4)
- 'critical', 'alert' and 'emergency' levels were dropped as seem to not serve a use case in context of JS apps
- Default level was changed from 'debug' to 'info'
- Or writer-utils were moved to lib
3.2.0 (2018-11-29)
- rename log4 to log (84cd31a)
3.1.0 (2018-09-21)
- support default namespace concept (3c99624)
- validate namespace token when setting as default (62862c1)
3.0.1 (2018-06-01)
- put default level threshold to notice (e994285)
3.0.0 (2018-06-01)
-
Predefined levels are no longer accessible at
logger.predefinedLevels
property. Instead they should be required fromlog4/levels
-
For simplicity and to avoid compliance issues, only predefined levels are allowed (it's no longer possible to create custom named levels)
-
enable()
anddisable()
methods no logger return own logger. Instead they return plain object withrestore
function, that allows to restore to previous state -
getNs
method has been renamed toget
-
ns
property has been renamed tonamespace
-
nsTokens
property has been renamed tonamespaceTokens
-
Emitter is not longer accessible at logger.emiter Instead it should be required from
log4/emitter
-
getAllLevels
method has been renamed togetAllInitializedLevels
-
hasLevel
method has been renamed toisLevelInitialized
-
hasNs
method has been renamed toisNamespaceInitialized
-
New setupVisibility accepts:
-
levelThreshold
- on its basis it's decided logs for which levels are enabled by default -
debugNamespaceToken
- List of namespaces to be exposed for levels below threshold
-
-
getLevel
method was removed. Use direct property names:log.error
instead oflog.getLevel("error")
-
getAllNs
method has been renamed togetAllInitializedNamespaces
- Default symbols to represent levels (dc2487b)
- Expose levelIndex on level (aa480ee)
- Introduce
logger.levelRoot
property (d1b61c1) isLogger
andensureLogger
utils (30d7ab6)registerMaster
log writer util (7a36ad8)
2.0.0 (2018-03-22)
- remove date from log event (7f2903a)
- remove node env handler (20450ad)
- remove obsolete event emit (9499b37)
- feat: emit events also if logger disabled (6eb338d)
- logs for disabled loggers will also be emitted.
Handler should check
logger.enabled
to confirm on whether intetion is to have log visible - remove 'event.date` property
- log:before event was removed
- Node env handler was moved to outer package, it'll have to be initialized as:
require('log4-node')
1.2.0 (2017-09-22)
1.1.0 (2017-09-07)
- expose 'warn' alias as predefined property (e8bf927)
- take back exposure of nsChildren (1784c1a)
- do not force sort on getAllLevels (8489362)
- ensure emitted messageTokens are array (28bea04)
- ensure enable/disable return target logger (76228c0)
- expose array of predefined levels (354db58)
- expose levels at named properties (91ab1c4)
- getLevels method (8f36cfe)
- introduce getAllNs method (e7eabee)
- introduce hasLevel and hasNs (2887a80)
- make _children public as nsChildren (0729be7)
- node.js env logger (2582afe)
- predefined log levels (ad23c30)
- replace getLevels with getAllLevels (03478fc)
- setupEnv functionality (a873045)
- tolerate whitespace noise in visibility conf (14953be)