Skip to content

Commit

Permalink
small change
Browse files Browse the repository at this point in the history
Signed-off-by: TinnyTerr <168141209+TinnyTerr@users.noreply.github.com>
  • Loading branch information
TinnyTerr committed Nov 26, 2024
1 parent 4a9755a commit 47ab36f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ const { Logger } = require('logmatic');

const log = new Logger("name");
```

For the default added levels, use the following:

| Function Call | Format | Colour |
|----|----|----|
|`log.trace()`|`{time} [trace] {name} {...data}`|Cyan|
Expand All @@ -30,6 +33,8 @@ const log = new Logger("name");
|`log.error()`|`{time} [error] {name} {...data}`|Red|
|`log.fatal()`|`{time} [fatal] {name} {...data}`|Red Background|

For your custom levels, please see [Levels](#levels) below

## Options

The following section is expecting you have imported the class. It will then demonstrate how to set the option.
Expand Down

0 comments on commit 47ab36f

Please sign in to comment.