Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ This gives you `--verbosity`, `--silent`, and `--logdev` options.
```python
import logmuse


def main():
# ... parse args ...
logger = logmuse.logger_via_cli(args, make_root=True)
Expand All @@ -57,6 +58,7 @@ Imported packages don't need logmuse at all. Just use the standard `logging` mod

```python
import logging

_LOGGER = logging.getLogger(__name__)
```

Expand Down
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [0.3.1] -- 2026-08-07
### Changed
- Default (non-devmode) log message format now includes level, timestamp, and logger name: `[%(levelname)s] [%(asctime)s] [%(name)s] %(message)s` (was bare `%(message)s`). This is what downstream packages were reconfiguring by hand.
- Because the logger name is now included, downstream packages no longer need to hand-roll a per-package prefix (e.g. `[BEDBOSS]`, `[PEPDBAGENT]`) in their own format strings; `%(name)s` reports the actual originating logger, including submodules.
- Development mode (`--logdev`/`devmode=True`) and log file output formats are unchanged.

## [0.3.0] -- 2026-03-05
### Changed
- Modernized packaging: pyproject.toml with hatchling, removed setup.py
Expand Down
2 changes: 1 addition & 1 deletion logmuse/logmuse.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
]


BASIC_LOGGING_FORMAT: str = "%(message)s"
BASIC_LOGGING_FORMAT: str = "[%(levelname)s] [%(asctime)s] [%(name)s] %(message)s"
DEV_LOGGING_FMT: str = (
"%(levelname).4s %(asctime)s | %(name)s:%(module)s:%(lineno)d > %(message)s "
)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "logmuse"
version = "0.3.0"
version = "0.3.1"
description = "Logging setup"
readme = "README.md"
license = "BSD-2-Clause"
Expand Down