Skip to content

Commit 35f2766

Browse files
authored
Merge pull request #122 from AthennaIO/develop
feat: add option to not parse message in formatter
2 parents 0fe01cc + 8386d02 commit 35f2766

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@athenna/logger",
3-
"version": "5.12.0",
3+
"version": "5.13.0",
44
"description": "The Athenna logging solution. Log in stdout, files and buckets.",
55
"license": "MIT",
66
"author": "João Lenon <lenon@athenna.io>",

src/formatters/NoneFormatter.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ import { Formatter } from '#src/formatters/Formatter'
1111

1212
export class NoneFormatter extends Formatter {
1313
public format(message: string): string {
14+
if (this.configs.withoutParsers) {
15+
return message
16+
}
17+
1418
return this.clean(this.applyColorsByChalk(this.toString(message)))
1519
}
1620
}

0 commit comments

Comments
 (0)