Skip to content

Commit 9e3fa9f

Browse files
committed
feat: release version 0.4.0 with custom logger support and updated documentation
1 parent 9fa0cae commit 9e3fa9f

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# cronbake
22

3+
## 0.4.0
4+
5+
### Features
6+
7+
- **Custom Logger Support**: Add pluggable logger interface allowing integration with any logging library (pino, winston, bunyan, logtape, etc.)
8+
- New `Logger` interface exported from package API
9+
- Pass `logger` option to `Baker.create()` to set a global logger for all jobs
10+
- Override logger per job via `logger` option in `baker.add()` or `Cron.create()`
11+
- Default behavior unchanged (falls back to `console`)
12+
- Thanks to [@nemvince](https://github.com/nemvince) for the work in [PR #17](https://github.com/chaqchase/cronbake/pull/17)
13+
14+
### Examples
15+
16+
- Added `examples/logging.ts` demonstrating custom logger usage with colored output, global logger, per-job overrides, and error logging
17+
18+
### Documentation
19+
20+
- Updated README with comprehensive custom logger documentation and examples
21+
322
## 0.3.2
423

524
### Fixes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "cronbake",
33
"description": "A powerful and flexible cron job manager built with TypeScript",
44
"module": "dist/index.js",
5-
"version": "0.3.2",
5+
"version": "0.4.0",
66
"publishConfig": {
77
"access": "public"
88
},

0 commit comments

Comments
 (0)