Skip to content

Releases: sk-pkg/logger

v1.2.0

Choose a tag to compare

@seakee seakee released this 18 Oct 02:27
  1. Feature Additions

    • Added capability to dynamically modify log levels
    • Implemented support for colored log output
    • Automatic stack trace inclusion for Error, Fatal, and Panic level logs
    • Added With method to create loggers with additional fields
  2. Configuration Improvements

    • Utilized iota for defining log level constants, enhancing readability
    • Added configuration options for maximum log file retention time and rotation interval
  3. Code Structure Optimization

    • Improved file logging creation logic with a dedicated function
    • Refactored portions of the code to enhance maintainability
  4. Compatibility

    • Maintained API compatibility with previous versions

This update significantly enhances the logging system's performance, flexibility, and functionality while maintaining good backward compatibility. We recommend all users to upgrade to this version to benefit from these improvements.

v1.1.1

Choose a tag to compare

@seakee seakee released this 18 Jun 02:51
  • Repackage the logger to add TraceID.
  • Update the examples of logger.
  • Update the unit tests after supporting TraceID.
  • Update the reference documentation

v1.0.0

Choose a tag to compare

@seakee seakee released this 14 Jun 13:13

Logger是在zap logger基础上封装的快速使用包,支持日志标准输出、和指定文件输出。