Releases: PromisePending/logger.js
v2.0.0-alpha.1
Release v2.0.0-alpha.1: Customize Everything (#4)
v1.1.1: Saving Everything (patch)
-
[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
Added support for logging to a file
-
[NEW] Added the
fileProperties
parameter to theLogger
constructor, which includes the following properties:-
enable: enable logging to a file (defaults to
false
) [Iffalse
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 namelatest.log
(defaults totrue
) -
enableDebugLog?: if true, the debug log will be stored in the
logFolderPath
inside a folder namedlatestLogs
with the namedebug.log
(defaults totrue
) -
enableErrorLog?: if true, the error log will be stored in the
logFolderPath
inside a folder namedlatestLogs
with the nameerror.log
(defaults tofalse
) -
enableFatalLog?: if true, the fatal log will be stored in the
logFolderPath
inside a folder namedfatal-crash
with the namefatal-DATE.log
(defaults totrue
) -
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 namedAutoLogEnd
with theactivate
anddeactivate
functions. -
[NEW] AutoLogEnd
activate
function now accepts aLogger
instance as 2º parameter. If not given, it will create a new instance ofLogger
with the default parameters. Otherwise, it will use the given instance.
v1.0.4: Logging Everything
This version fix a commonjs bug
v1.0.3: Logging Everything
This version allows access of options interface
v1.0.2: Logging Everything
This version fixes a little typo
v1.0.1: Logging Everything
This version fix autoLogEnd export
v1.0.0: Logging Everything
First logger.js version!