Skip to content

Commit

Permalink
Some guidelines.md fixes
Browse files Browse the repository at this point in the history
There is no `log` method on Loggers, see:

https://slf4j.org/api/org/slf4j/Logger.html

Signed-off-by: Wouter Born <github@maindrain.net>
  • Loading branch information
wborn committed Jun 30, 2023
1 parent 0c46958 commit d14473a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions developers/guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,13 @@ class MyCoolClass {
}
```

- Parametrized logging must be used (instead of string concatenation).
- Parameterized logging must be used (instead of string concatenation).

```java
void myFun() {
String someValue = "abc";
int someInt = 12;
logger.log("Current value is {} and int is {}", someValue, someInt);
logger.debug("Current value is {} and int is {}", someValue, someInt);
}
```

Expand Down

0 comments on commit d14473a

Please sign in to comment.