Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump @promisepending/logger.js from 1.0.4 to 1.1.1 #235

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 22, 2024

Bumps @promisepending/logger.js from 1.0.4 to 1.1.1.

Release notes

Sourced from @​promisepending/logger.js's releases.

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 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.

Changelog

Sourced from @​promisepending/logger.js's changelog.

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

  • [NEW] 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 and etc. Like the default console.log function.

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

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

v1.0.0: Logging Everything

  • [NEW] Initial release of logger

    • Supports Warning, Error, Info, Debug, and Fatal logging levels

    • Supports colored output if specified

Commits
  • 07889b7 Release: v1.1.1: Saving Everything (patch) (#2)
  • 898e446 (chore): Fixed changelog
  • e6bcc2f (chore): Added readme example picture
  • 1fec807 (fix): Fatal and zip
  • 3d72924 (fix): duplicated logs and typescript types
  • 3e58a7c Release v1.1.0: Saving Everything
  • 66409cd Merge branch 'release'
  • d8c6119 (feat): Finish V1.1
  • 522fee8 (feat): WIP log file generation system
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@promisepending/logger.js](https://github.com/PromisePending/logger.js) from 1.0.4 to 1.1.1.
- [Release notes](https://github.com/PromisePending/logger.js/releases)
- [Changelog](https://github.com/PromisePending/logger.js/blob/release/CHANGELOG.md)
- [Commits](PromisePending/logger.js@v1.0.4...v1.1.1)

---
updated-dependencies:
- dependency-name: "@promisepending/logger.js"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the Type: dependencies Pull requests that update a dependency file label Feb 22, 2024
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants