To be released.
- Improve LogTape' extensibility.
- Add
./types
file module to the JSR and NPM exports field for easy external access to types. - Add a
properties
parameter to thelogLazily
andlogTemplate
methods of theLoggerImpl
class.
- Add
Released on July 15, 2024.
-
LogTape now works well on edge functions. [#5]
- The npm version of LogTape no more depends on
node:stream/web
module. - LogTape now works well with JavaScript runtimes that do not support
node:fs
module. - LogTape now works well with JavaScript runtimes that do not support
WeakRef
class. - Got rid of
eval()
from LogTape.
- The npm version of LogTape no more depends on
Released on July 2, 2024.
- Fixed a bug where LogTape failed to load under Node.js when incorporated in a project from JSR. [#3, #4 by Kitson Kelly]
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.