To be released.
Released on May 7, 2024.
Released on May 7, 2024.
- Fixed a bug where two or more versions of LogTape were imported in the same
runtime, the
Logger
instances would not be shared between them. This was caused by theLogger
instances being stored in a module-level variable.
Released on April 22, 2024.
- Added
parseLogLevel()
function. - Added
isLogLevel()
function. - Added
getConfig()
function. - Added
withFilter()
function.
Released on May 7, 2024.
- Fixed a bug where two or more versions of LogTape were imported in the same
runtime, the
Logger
instances would not be shared between them. This was caused by theLogger
instances being stored in a module-level variable.
Released on April 21, 2024.
- Fixed a bug where the configured sinks and filters were reset after
some inactivity. This was caused by garbage collection of the
Logger
instances. TheLogger
instances are now kept alive by an internal set of strong references until explicitlyreset()
is called.
Released on April 20, 2024.
- Removed
FileSinkDriver
interface. - Added
RotatingFileSinkOptions
interface.
Released on April 20, 2024.
-
Sinks now can be asynchronously disposed of. This is useful for sinks that need to flush their buffers before being closed.
- Added
dispose()
function. - The return type of
configure()
function becamePromise<void>
(wasvoid
). - The return type of
reset()
function becamePromise<void>
(wasvoid
). - Configured sinks that implement
AsyncDisposable
are now disposed of asynchronously when the configuration is reset or the program exits.
- Added
-
The return type of
getStreamSink()
function becameSink & AsyncDisposable
(wasSink & Disposable
). -
Added
getRotatingFileSink()
function.
Released on May 7, 2024.
- Fixed a bug where two or more versions of LogTape were imported in the same
runtime, the
Logger
instances would not be shared between them. This was caused by theLogger
instances being stored in a module-level variable.
Released on April 21, 2024.
- Fixed a bug where the configured sinks and filters were reset after
some inactivity. This was caused by garbage collection of the
Logger
instances. TheLogger
instances are now kept alive by an internal set of strong references until explicitlyreset()
is called.
Initial release. Released on April 19, 2024.