Skip to content

Commit

Permalink
styles: Adjust colors from Logger
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Oct 31, 2021
1 parent 842e1a5 commit 7f42b03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@secjs/logger",
"version": "1.1.6",
"version": "1.1.7",
"description": "",
"scripts": {
"build": "tsc",
Expand Down
10 changes: 5 additions & 5 deletions src/Logger/Logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class Logger {

info(message: any, formatterOpts: any = {}, transporterOpts: any = {}) {
formatterOpts.level = 'INFO'
formatterOpts.color = Color.info
formatterOpts.color = Color.cyan
formatterOpts.context = formatterOpts.context || this.context
transporterOpts.streamType = 'stdout'

Expand All @@ -22,7 +22,7 @@ export class Logger {

debug(message: any, formatterOpts: any = {}, transporterOpts: any = {}) {
formatterOpts.level = 'DEBUG'
formatterOpts.color = Color.debug
formatterOpts.color = Color.purple
formatterOpts.context = formatterOpts.context || this.context
transporterOpts.streamType = 'stdout'

Expand All @@ -31,7 +31,7 @@ export class Logger {

warn(message: any, formatterOpts: any = {}, transporterOpts: any = {}) {
formatterOpts.level = 'WARN'
formatterOpts.color = Color.warning
formatterOpts.color = Color.orange
formatterOpts.context = formatterOpts.context || this.context
transporterOpts.streamType = 'stdout'

Expand All @@ -40,7 +40,7 @@ export class Logger {

error(message: any, formatterOpts: any = {}, transporterOpts: any = {}) {
formatterOpts.level = 'ERROR'
formatterOpts.color = Color.error
formatterOpts.color = Color.red
formatterOpts.context = formatterOpts.context || this.context
transporterOpts.streamType = 'stderr'

Expand All @@ -49,7 +49,7 @@ export class Logger {

success(message: any, formatterOpts: any = {}, transporterOpts: any = {}) {
formatterOpts.level = 'SUCCESS'
formatterOpts.color = Color.log
formatterOpts.color = Color.green
formatterOpts.context = formatterOpts.context || this.context
transporterOpts.streamType = 'stdout'

Expand Down

0 comments on commit 7f42b03

Please sign in to comment.