Changelog History
-
v1.4.2 Changes
November 02, 2022Contributor: Theo Gravity
- ๐ Fix issue where
LogLayer#child()
was not creating a shallow copy of context (#10)
๐ The documentation says the context should be shallow copied, but it wasn't. Now it is.
- ๐ Fix issue where
-
v1.4.1 Changes
November 02, 2022Contributor: Theo Gravity
- โ Add support for creating child loggers (#9)
๐ง This adds a new method called
LogLayer#child()
that will create a new LogLayer instance with the original configuration and context data copied over. -
v1.3.4 Changes
August 22, 2022Contributor: Theo Gravity
- โ Add consoleDebug option (#7)
-
v1.3.3 Changes
August 10, 2022Contributor: Theo Gravity
- โ Add config option and methods to disable / enable logging (#6)
๐ฒ This adds an optional config option called
enabled
, when set tofalse
, will stop log output.Corresponding methods
enableLogging()
anddisableLogging()
have also been added. -
v1.3.2 Changes
August 10, 2022Contributor: Theo Gravity
- โ Add
setHooks()
method (#5)
โ Adds a new method on
LogLayer
calledsetHooks()
that allows โก๏ธ hooks to be set or updated after creation of theLogLayer
.๐ง Useful as an alternative to using configuration on init to set a hook
- โ Add
-
v1.3.1 Changes
August 10, 2022Contributor: Theo Gravity
- โ Add hooks feature, add onBeforeDataOut hook (#4)
๐ฒ This adds the ability to register hooks with
LogLayer
. The first available hook,onBeforeDataOut()
, allows manipulation of the data object before it is sent to the logging library.๐ See the
README.md
hooks section for more details. -
v1.2.1 Changes
August 09, 2022Contributor: Theo Gravity
- ๐ Fix issue where data is lost if fieldName for context and metadata is the same (#3)
๐ If you configure the context and metadata fieldName to have the same name, ๐ only the metadata is captured, while the context is lost.
๐ The data is now merged into the shared field.
-
v1.1.1 Changes
June 13, 2022Contributor: Theo Gravity
- โ Add getContext() (#2)
โ Adds a new method to the logger,
getContext()
, which returns the current context. -
v1.0.2 Changes
November 29, 2021Contributor: Theo Gravity
- โก๏ธ Update README.md
-
v1.0.1 Changes
November 29, 2021Contributor: Theo Gravity
๐ Make withContext() chainable (#1)
withContext()
is now chainable. Most will want to call it right after creating a newLogLayer
instead of having a separate line for it.