Skip to content

Commit

Permalink
log: rename comptime define no_log -> shy_no_log
Browse files Browse the repository at this point in the history
  • Loading branch information
larpon committed Sep 27, 2023
1 parent 5281404 commit 7a83d75
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions log/log.v
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ fn (l &Log) changes(flag Flag) string {

//

[if !no_log ?]
[if !shy_no_log ?]
pub fn (l &Log) custom(id string, str string) {
if l.flags.has(.custom) {
if l.flags.has(.buffer) {
Expand All @@ -196,7 +196,7 @@ pub fn (l &Log) custom(id string, str string) {
}
}

[if !no_log ?]
[if !shy_no_log ?]
pub fn (l &Log) info(str string) {
if l.flags.has(.info) {
if l.flags.has(.buffer) {
Expand All @@ -209,7 +209,7 @@ pub fn (l &Log) info(str string) {
}
}

[if !no_log ?]
[if !shy_no_log ?]
pub fn (l &Log) warn(str string) {
if l.flags.has(.warn) {
if l.flags.has(.buffer) {
Expand All @@ -222,7 +222,7 @@ pub fn (l &Log) warn(str string) {
}
}

[if !no_log ?]
[if !shy_no_log ?]
pub fn (l &Log) error(str string) {
if l.flags.has(.error) {
if l.flags.has(.buffer) {
Expand All @@ -235,7 +235,7 @@ pub fn (l &Log) error(str string) {
}
}

[if !no_log ?]
[if !shy_no_log ?]
pub fn (l &Log) critical(str string) {
if l.flags.has(.critical) {
if l.flags.has(.buffer) {
Expand All @@ -248,7 +248,7 @@ pub fn (l &Log) critical(str string) {
}
}

[if debug && !no_log ?]
[if debug && !shy_no_log ?]
pub fn (l &Log) debug(str string) {
if l.flags.has(.debug) {
if l.flags.has(.buffer) {
Expand All @@ -263,7 +263,7 @@ pub fn (l &Log) debug(str string) {

// Group

[if !no_log ?]
[if !shy_no_log ?]
pub fn (l &Log) gcustom(id string, group string, str string) {
if l.flags.has(.custom) {
if l.flags.has(.buffer) {
Expand All @@ -276,7 +276,7 @@ pub fn (l &Log) gcustom(id string, group string, str string) {
}
}

[if !no_log ?]
[if !shy_no_log ?]
pub fn (l &Log) ginfo(group string, str string) {
if l.flags.has(.info) {
if l.flags.has(.buffer) {
Expand All @@ -289,7 +289,7 @@ pub fn (l &Log) ginfo(group string, str string) {
}
}

[if !no_log ?]
[if !shy_no_log ?]
pub fn (l &Log) gwarn(group string, str string) {
if l.flags.has(.warn) {
if l.flags.has(.buffer) {
Expand All @@ -303,7 +303,7 @@ pub fn (l &Log) gwarn(group string, str string) {
}
}

[if !no_log ?]
[if !shy_no_log ?]
pub fn (l &Log) gerror(group string, str string) {
if l.flags.has(.error) {
if l.flags.has(.buffer) {
Expand All @@ -317,7 +317,7 @@ pub fn (l &Log) gerror(group string, str string) {
}
}

[if !no_log ?]
[if !shy_no_log ?]
pub fn (l &Log) gcritical(group string, str string) {
if l.flags.has(.critical) {
if l.flags.has(.buffer) {
Expand All @@ -331,7 +331,7 @@ pub fn (l &Log) gcritical(group string, str string) {
}
}

[if debug && !no_log ?]
[if debug && !shy_no_log ?]
pub fn (l &Log) gdebug(group string, str string) {
if l.flags.has(.debug) {
if l.flags.has(.buffer) {
Expand Down

0 comments on commit 7a83d75

Please sign in to comment.