Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
🏷 Fix childLogger type
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Vlasák committed Mar 2, 2020
1 parent 45bb98e commit 8fa83e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## [Unpublished]

### Fixed
- child logger type

### Added
- parent logger name inheritance
- logging to sentry (option `sentry` and `sentryLevel`)
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface Cosmas extends PinoLogger {
express: CosmasExpressMiddleware;
expressError: ErrorRequestHandler;
stream: Writable;
(childName: string): any;
(childName: string): Cosmas;
}

export interface CosmasFactory extends Cosmas {
Expand Down

0 comments on commit 8fa83e1

Please sign in to comment.