Skip to content

Commit

Permalink
fix: release
Browse files Browse the repository at this point in the history
  • Loading branch information
froid1911 committed Jul 29, 2024
1 parent b8ae915 commit 0f21557
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@ Here's a couple of examples:
In order to maintain the logging structure and be able to filter logs by file they have been produced at the following approach has to be taken:

```typescript
import { getModuleBinding, getChildLogger } from './logger';
import { getModuleBinding, getChildLogger } from "./logger";
const logger = getChildLogger({ msgPrefix: 'PREFIX' }, { myCustomBinding: 'Funny guy' });
const logger = getChildLogger(
{ msgPrefix: "PREFIX" },
{ myCustomBinding: "Funny guy" }
);
```

If this approach is used - then it will be possible to filter the logs via providing the corresponding environment variable values. For more on this read the root [README](./api/README.md)

0 comments on commit 0f21557

Please sign in to comment.