Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
surol committed May 22, 2023
1 parent e648252 commit ccf1b39
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ Each method accepts arbitrary number of arguments.

[loggable]: #loggable-values

An object passes as an argument to one of the `Logger` methods can customize how it is logged by implementing a
An object passed as an argument to one of the `Logger` methods can customize how it is logged by implementing a
`toLog()` method of `Loggable` interface.

In the simples case, the `toLog()` method may return another value that will be logged instead of the original one.
In the simple case, the `toLog()` method may return another value that will be logged instead of the original one.

It may also return an array of values that will be inserted to the log line instead of original value. This may be an
empty array to completely remove the value from the log line.
Expand Down Expand Up @@ -100,9 +100,9 @@ consoleLogger.error(logline`
The `logline`-tagged template formats the log line accordingly the following rules:

1. Template strings and values not separated by whitespace joined into single string.
2. The values separated by whitespaces are added to the log line as is.
2. The values separated by whitespace are added to the log line as is.
3. Template strings trimmed.
4. Any number of subsequent whitespaces in template strings replaced with single space.
4. Any number of subsequent whitespace in template strings replaced with single space.
5. Leading and/or trailing template string removed if it became empty.

All [Loggable] values processed before being joined into string. They may be processed as many times as requested.
Expand Down

0 comments on commit ccf1b39

Please sign in to comment.