Skip to content

Releases: PromisePending/logger.js

v2.0.0-alpha.1

27 Jun 03:41
92aec2f
Compare
Choose a tag to compare
v2.0.0-alpha.1 Pre-release
Pre-release
Release v2.0.0-alpha.1: Customize Everything (#4)

v1.1.1: Saving Everything (patch)

20 Jul 03:16
07889b7
Compare
Choose a tag to compare
  • [FIXED] Fixed a bug that caused logs that passed arguments to log the same thing twice

  • [FIXED] Fixed typescript types for the Logger class

  • [FIXED] Fixed an issue that caused having two logger instances logging to the same folder to cause a crash when the second instance tried to close the file stream

  • [FIXED] Zip files timestamp now reflects the last modified time of the latest log file instead of the time of the zip creation

  • [UPDATE] Fatal logs now are saved per fatal crash, instead of all fatal crashes of the same execution being saved to the same file

  • [UPDATE] Fatal logs now have a 4 character random code at the start of the file name to prevent overwriting of files

  • [UPDATE] Zip files now have a 4 character random code at the start of the file name to prevent overwriting of files

v1.1.0: Saving Everything

07 Jun 19:56
3e58a7c
Compare
Choose a tag to compare

Added support for logging to a file

  • [NEW] Added the fileProperties parameter to the Logger constructor, which includes the following properties:

    • enable: enable logging to a file (defaults to false) [If false all the other properties will be ignored]

    • logFolderPath: path to the folder where the log files will be stored (will be created if it doesn't exist, defaults to ./logs)

    • enableLatestLog?: if true, the latest log file will be stored in the logFolderPath with the name latest.log (defaults to true)

    • enableDebugLog?: if true, the debug log will be stored in the logFolderPath inside a folder named latestLogs with the name debug.log (defaults to true)

    • enableErrorLog?: if true, the error log will be stored in the logFolderPath inside a folder named latestLogs with the name error.log (defaults to false)

    • enableFatalLog?: if true, the fatal log will be stored in the logFolderPath inside a folder named fatal-crash with the name fatal-DATE.log (defaults to true)

    • generateHTMLLog?: if true, the log files will be generated in HTML format (their extension will change from .log to .html) (defaults to false)

    • compressLogFilesAfterNewExecution?: if true, the log files will be compressed to a zip file after a new execution of the program (defaults to true)

  • [NEW] Added support to log objects, arrays, etc. Like the default console.log function.

  • [BREAKING] Changed the export of AutoLogEnd now importing the package will return the Logger class and an object named AutoLogEnd with the activate and deactivate functions.

  • [NEW] AutoLogEnd activate function now accepts a Logger instance as 2º parameter. If not given, it will create a new instance of Logger with the default parameters. Otherwise, it will use the given instance.

v1.0.4: Logging Everything

16 Mar 21:15
48df720
Compare
Choose a tag to compare

This version fix a commonjs bug

v1.0.3: Logging Everything

16 Mar 21:03
5dd8594
Compare
Choose a tag to compare

This version allows access of options interface

v1.0.2: Logging Everything

16 Mar 20:51
c1ef21e
Compare
Choose a tag to compare

This version fixes a little typo

v1.0.1: Logging Everything

16 Mar 20:26
95ec26a
Compare
Choose a tag to compare

This version fix autoLogEnd export

v1.0.0: Logging Everything

16 Mar 20:12
d9cfa87
Compare
Choose a tag to compare

First logger.js version!