@loglayer/shared Changelog
3.3.0
Minor Changes
- #333
4916581Thanks @theogravity! -clearContext()now accepts an optional parameter to clear specific context keys instead of all context data.
3.2.0
Minor Changes
- #321
9155ec9Thanks @theogravity! - - AddedaddTransport()method to dynamically add one or more transports to an existing logger. If a transport with the same ID already exists, it will be replaced.- Added
removeTransport()method to remove a transport by its ID. Returnstrueif the transport was found and removed,falseotherwise.
- Added
3.1.1
Patch Changes
- #318
358032aThanks @theogravity! - - Add to package.jsonsideEffects: false, which will better help with tree shaking- Dev dependency updates
3.1.0
Minor Changes
#316
c45b39aThanks @theogravity! - All changes are backwards-compatible.Enhanced Mixin Type System - Major improvements to mixin type preservation through method chaining:
ILogLayerandILogBuilderinterfaces are now generic with aThisparameter (e.g.,ILogLayer<This = ILogLayer<any>>), enabling automatic type preservation through method chaining- All methods that preserve the logger instance (like
withContext(),child(),withPrefix()) now returnThis, ensuring mixin methods remain available throughout the chain - Methods that transition to the builder phase (
withMetadata(),withError()) returnILogBuilder<any> - This enhancement means mixin types are automatically preserved without requiring explicit type intersections
3.1.0-alpha-0.0
Minor Changes
- d5bb7f7: Better mixin support
3.0.1
Patch Changes
fa69748Thanks @theogravity! - Add optional disposable method to theIContextManagerandILogLevelManagerinterfaces. They've always supported it, but it was not explicitly noted for the interface.
3.0.0
Major Changes
#305
5af0d6bThanks @theogravity! - New version 8 of LogLayer introduces Log Level Managers, a system for managing log level settings across logger instances. Log level managers provide a way to control how log levels are inherited and propagated between parent and child loggers.v8 does not have any breaking changes; no migration steps are necessary to upgrade from v7 -> v8 of
loglayer.
2.7.1
Patch Changes
8f10f44Thanks @theogravity! - Add the message param toPluginTransformLogLevelParams
2.7.0
Minor Changes
- #295
4b0996cThanks @theogravity! - AddtransformLogLevelplugin callback
2.6.0
Minor Changes
8554479Thanks @theogravity! - AddgetConfig()method toLogLayerto get the user settings used when creating the instance.
2.5.3
Patch Changes
2.5.2
Patch Changes
aa0d9e1Thanks @theogravity! - Remove theLogLayerContextandLogLayerMetadataextension from theLogLayerDatainterface as context and metadata fields are user-configured, which the extension wouldn't capture. It now extends the Record instead.
2.5.1
Patch Changes
2.5.0
Minor Changes
#261
9b32187Thanks @theogravity! - - Added newraw()method for advanced logging scenariosAllows bypassing the normal LogLayer API to directly specify all aspects of a log entry
Supports complete control over log level, messages, metadata, error, and context
Still processes through all LogLayer features including plugins, context merging, and transport routing
See Basic Logging documentation for usage examples
Fixed bug where
errorFieldInMetadataoption was not working correctly- Error objects were not being placed in metadata fields when
errorFieldInMetadatawas set to true - Now properly places errors in metadata fields as specified by the configuration
- Error objects were not being placed in metadata fields when
2.4.0
Minor Changes
#239
12ca18aThanks @theogravity! - - Transports now additionally receive theerror,metadata, andcontextdata in theshipToLogger()callback. * It is still recommended to usedatafor most use-cases as it is a merged object of all data with the user's configured fields.- Plugin callbacks
onBeforeDataOut()andshouldSendToLogger()now additionally receive theerror,metadata, andcontextdata.
This change should allow a plugin or transport developer to inspect data without needing to know how the user has configured their
dataobject.- Plugin callbacks
2.3.1
Patch Changes
- #200
a2f5a17Thanks @theogravity! - Package dev dep updates, linting updates
2.3.0
Minor Changes
- #190
818bae5Thanks @theogravity! - Adds new log level control methods toILogLayerand adds theLogLayerTypetype.
2.2.1
Patch Changes
- #175
a66ce9bThanks @theogravity! - Documentation updates
2.2.0
Minor Changes
- #169
09e33abThanks @theogravity! - All transports now support multiple parameter passing in log methods
2.1.1
Patch Changes
- #160
161029aThanks @theogravity! - external dependency version updates
2.1.0
Minor Changes
#153
96a5c57Thanks @theogravity! - Updates around context and metadata handling.- Added
clearContext()to clear context data. withMetadata()/metadataOnly()/withContext()now allows an empty value. Empty values will not result in any data mutations or plugin executions.
- Added
2.0.0
Major Changes
- #151
5f1260bThanks @theogravity! - - New in v6: Context Manager implementation- Breaking: Removes
linkParentContextoption fromloglayerconfiguration
- Breaking: Removes
1.3.0
Minor Changes
- #143
733ba8fThanks @theogravity! - Move the plugin types to the shared package to support the newwithFreshPlugins()method onILogLayer, expose plugin-only types from shared package to plugin package.
1.2.1
Patch Changes
- #140
d708ff7Thanks @theogravity! - FixmetadataOnlytypescript def. The second parameter should always be optional.
1.2.0
Minor Changes
- #138
54b8223Thanks @theogravity! - Add withFreshTransports method tologlayer
1.1.0
Minor Changes
- #129
d8054c8Thanks @theogravity! - LogLayer now passes theloglayerinstance as the last parameter to all plugin callbacks
1.0.5
Patch Changes
- #112
561a1a6Thanks @theogravity! - Update changelog doc formatting, add links to documentation site
1.0.4
Patch Changes
cef5ab1Thanks @theogravity! - Readme updates
1.0.3
Patch Changes
43ffd72Thanks @theogravity! - docs: fix up documentation
1.0.2
Patch Changes
c136c0fThanks @theogravity! - README.md updates
1.0.1
Patch Changes
da9bc6fThanks @theogravity! - Add LICENSE file (MIT) to packages
1.0.0
Major Changes
0fc607bThanks @theogravity! - chore: release first version
