mylog

A simple logging library for Python.

GPL-3.0 License

Downloads
162
Stars
3
Committers
5

Bot releases are hidden (Show)

mylog - 0.10.0 Latest Release

Published by koviubi56 9 months ago

[0.10.0] - 2024-01-27

Changed

  • Changed how propagating works:
    • It used to be:
      • Should propagate?
        • Yes: log with parent
        • No: log with self
    • It now is:
      • Log with self
      • If should propagate:
        • Log with parent
mylog - 0.9.1

Published by koviubi56 10 months ago

[0.9.1] - 2023-12-24

Changed

  • Changed how StreamWriterHandler's color_config to Mapping[int, tuple[object, ...]]
  • Changed DEFAULT_COLOR_CONFIG

Removed

  • Removed StreamWriterHandler.color

Fixed

  • Fixed levels' ljusting in StreamWriterHandler.level_to_str.
Name: mylog_0.9.1.zip
Size: 2529858 bytes (2470 KiB)
CRC32: 1D030503
CRC64: D89FEBEDE34CFF88
SHA256: bb08a39724e844f7d50fcb948b5d3055cd9fa06d008ce3ada04759c571c063f1
SHA1: bc0ed0582eac014136cf51725a3a45ec888e7536
BLAKE2sp: 6e0a9fee8c2f8f46259baf048e38e27df883b001686bdec136eeda162aa839ba

How to verify?

mylog - 0.9.0

Published by koviubi56 10 months ago

[0.9.0] - 2023-12-23

Changed

  • ! REWROTE the entire library!
Name: mylog_0.9.0.zip
Size: 2456043 bytes (2398 KiB)
CRC32: B7DB0693
CRC64: 80F5A54845E6C5FF
SHA256: 171309b2b307532e69222123af866402e3c6472c29ebf87076f042e87fabc17d
SHA1: b019f54607aef7f4629c482b574bc95b5ebb1fb4
BLAKE2sp: 3fafb26a6ac0c9e810806aa88d04ada2b59ee198d3264b5924937a219247dca4

How to verify?

mylog - 0.8.0

Published by koviubi56 about 1 year ago

[0.8.0] - 2023-07-31

Changes from pre-releases are not listed here!

Changed

  • Now the package metadata is stored in pyproject.toml instead of setup.cfg
Name: mylog_0.8.0.zip
Size: 2222203 bytes (2170 KiB)
CRC32: CEE69B71
CRC64: 8323EA858B980D67
SHA256: 298f5bd3f5cbeec9ec27ad3fabea5ad5f0731a70e34d5dfca5395d31d836347d
SHA1: 14a2a8991be931798deed3be9d7bfd5dd60fd01b
BLAKE2sp: bb4694d7ce579c9487acf4c5f1a869eb59c681d080d0e3b45c55c46cf3086850

How to verify?

mylog - 0.8.0-beta.2

Published by koviubi56 over 1 year ago

[0.8.0-beta.2] - 2023-04-30

Removed

  • Removed warning in Logger.is_enabled_for about the threshold not being a Level

Fixed

  • Fixed default value for frame_depth in Logger.log (3 -> 4)
Name: mylog_0.8.0-beta.2.zip
Size: 1994350 bytes (1947 KiB)
CRC32: AB926D13
CRC64: 1CBFDC9C94B628C0
SHA256: 709bdda7f1b07ace70f478c8bf806f6bab66d18028d570ed9fac7b2cc144e9f4
SHA1: 4f19a98ac7b6f557c0cdf10a6b9755584d33506b
BLAKE2sp: 8774a740429736230475442ecbc30d936a38b7cceba711384a8671b25bc3b096
mylog - 0.8.0-beta.1

Published by koviubi56 over 1 year ago

[0.8.0-beta.1] - 2023-04-29

Changes

  • ! Renamed Logger._log to Logger.log, and its new signature is Logger.log(self: Self@Logger, lvl: Levelable, msg: Stringable, traceback: bool = False, frame_depth: int = 3) -> (LogEvent | None)
Name: mylog_0.8.0-beta.1.zip
Size: 1941591 bytes (1896 KiB)
CRC32: 75824D32
CRC64: 35A60DCB7B463C55
SHA256: 0e5de6255d4b86214c4c9714280f3f626c50ac723d5fdba1b11038b7091e04d3
SHA1: 42eebb8349c78696d8b8e2200038d33058feeb25
BLAKE2sp: c382b24e0d3df50af4fae07668ad76078cd5fe7a2cf5808ebf1ccac87110d9d1
mylog - 0.7.0

Published by koviubi56 over 1 year ago

[0.7.0] - 2023-03-19

Added

  • ! Added names for loggers! => Logger.__init__(self: Self@Logger, name: str, higher: Logger | None = None) -> None, new format substitution: {name}, Logger.get_child(self: Self@Logger, name: str) -> Logger #51
  • Added AttributesToInherit, Logger.compare_using_name (=> Logger._thing_to_compare), Logger.attributes_to_inherit, Logger.color_config (=> Logger.color(cls: Type[Self@Logger], rv: str) -> str), and Logger.level_name_width to make making changes to loggers easier.

Changed

  • Renamed Logger._color to Logger.color (26ee19f)
  • Made the following classes dataclasses:
    • SetAttr,
    • NoHandler,
    • StreamWriterHandler,
    • IndentLogger,
    • ChangeThreshold,
  • Made some methods class/staticmethods:
    • Logger.get_default_handlers,
    • Logger.level_to_str
  • Logger.threshold is a Union[Level, int] (26ee19f)

Removed

  • Removed check_typed and related (check_union, is_union, _check_types_error) (ef85a86)
Name: mylog_0.7.0.zip
Size: 1771341 bytes (1729 KiB)
CRC32: 19B1F8CA
CRC64: D600DE419E779430
SHA256: 39246e07faea7f7d6b482aa3755371ddc7932e4b20e0c0b6b9f09f6d30552efc
SHA1: 83e6fa80004bccef0e16e3802737ca73594ee389
BLAKE2sp: 202b0d3e1e3efdc1a1db71b084e0830ed9aab74cb4a0afcd6e718191be4ea1e7
mylog - 0.6.0

Published by koviubi56 over 2 years ago

[0.6.0] - 2022-07-13

Changed from pre-releases are listed here.

Added

  • Added an "optional" colorama.init() call. mylog tries to import colorama, and call colorama.init(), but if there's an exception, it will be ignored.

Removed

  • typing-extensions is not being used; it is not a dependency

Fixed

  • Fixed frame depth with debug, info, warning, error, and critical. Changed from 4 to 5.
mylog - 0.6.0-beta.1

Published by koviubi56 over 2 years ago

[0.6.0-beta.1] - 2022-07-10

Please note, that changes from previous pre-releases are not included, but will be in the final/stable release.

Added

  • Added an "optional" colorama.init() call. mylog tries to import colorama, and call colorama.init(), but if there's an exception, it will be ignored.

Fixed

  • Fixed frame depth with debug, info, warning, error, and critical. Changed from 4 to 5.
mylog - 0.5.0

Published by koviubi56 over 2 years ago

[0.5.0] - 2022-06-11

Added

  • Added __repr__ to SetAttr, NoHandler, StreamWriterHandler, Logger, IndentLogger, and ChangeThreshold
mylog - 0.4.0

Published by koviubi56 over 2 years ago

[0.4.0] - 2022-06-06

Added

  • ! Added handlers! Added Handler ABC, StreamWriterHandler, Logger.handlers, Logger.get_default_handlers
  • Added tb to LogEvent
  • Added SetAttr

Changed

  • Logger._inherit does not have a parameter lock
  • Logger.format_msg's signature looks like this: format_msg(self, event: LogEvent) -> str
  • Logger._actually_log, Logger._log, and the log methods (debug, info, ...) now return Optional[LogEvent]

Removed

  • ! Removed Logger.lock, Logger.flush, Logger.stream
  • Removed TeeStream
  • Removed Lock, NoLock
mylog - 0.3.0

Published by koviubi56 over 2 years ago

[0.3.0] - 2022-05-07

Added

  • ! Added TeeStream.
  • Added Logger.flush. Defaults to True. Not inherited. Must be set manually.
  • Added StreamProtocol
mylog - 0.2.0

Published by koviubi56 over 2 years ago

[0.2.0] - 2022-05-06

Changed from pre-releases are listed here.

Added

  • A UserWarning is issued, if a log function is called with traceback=True (or tb=True) but there's no exception.
  • Logger.is_enabled_for issues a UserWarning, if Logger.threshold is not a Level, and it tries to convert it.

Changed

  • Changed how inheritance works
  • Protocols are now runtime checkable.
  • Specified requirements/dependencies in setup.cfg too.

Removed

  • ! Because inheritance changed, most of the get_* methods were removed.
mylog - 0.2.0-beta.1

Published by koviubi56 over 2 years ago

0.2.0-beta.1 - 2022-04-22

This is a pre-release so you can't found any hashes nor signatures.
Please note, that changes from previous pre-releases are not included, but will be in the final/stable release.

Added

  • A UserWarning is issued, if a log function is called with traceback=True (or tb=True) but there's no exception.
  • Logger.is_enabled_for issues a UserWarning, if Logger.threshold is not a Level, and it tries to convert it.

Changed

  • Changed how inheritence works
  • Protocols are now runtime checkable.

Removed

  • ! Because inheritence changed, most of the get_* methods were removed.
mylog - 0.1.1

Published by koviubi56 over 2 years ago

mylog - 0.1.0

Published by koviubi56 over 2 years ago