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.