Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update logging type enum #25

Merged
merged 1 commit into from
May 6, 2024
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
5 changes: 5 additions & 0 deletions .changeset/olive-maps-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"loglayer": patch
---

Readme updates
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -472,13 +472,17 @@ Use the `other` value for log libraries not supported here. `loglayer` may or ma
work with it.

```typescript
enum LoggerType {
OTHER = 'other',
WINSTON = 'winston',
ROARR = 'roarr',
PINO = 'pino',
BUNYAN = 'bunyan',
CONSOLE = 'console',
export enum LoggerType {
BUNYAN = "bunyan",
CONSOLA = "consola",
CONSOLE = "console",
ELECTRON_LOG = "electronLog",
LOG4JS_NODE = "log4js-node",
PINO = "pino",
ROARR = "roarr",
SIGNALE = "signale",
WINSTON = "winston",
OTHER = "other",
}
```

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions src/types/common.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ export enum LogLevel {
* Specifies the type of logging library used.
*/
export enum LoggerType {
OTHER = "other",
WINSTON = "winston",
ELECTRON_LOG = "electronLog",
ROARR = "roarr",
PINO = "pino",
BUNYAN = "bunyan",
LOG4JS_NODE = "log4js-node",
SIGNALE = "signale",
CONSOLA = "consola",
CONSOLE = "console",
ELECTRON_LOG = "electronLog",
LOG4JS_NODE = "log4js-node",
PINO = "pino",
ROARR = "roarr",
SIGNALE = "signale",
WINSTON = "winston",
OTHER = "other",
}

export type MessageDataType = string | number | null | undefined;
Expand Down
Loading