Skip to content

Commit

Permalink
docs: update logging type enum
Browse files Browse the repository at this point in the history
  • Loading branch information
theogravity committed May 6, 2024
1 parent 831fea6 commit 75f5691
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 16 deletions.
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

0 comments on commit 75f5691

Please sign in to comment.