> For the complete documentation index, see [llms.txt](https://bernardo.gitbook.io/development-docs-java/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bernardo.gitbook.io/development-docs-java/logging-in-java/log4j/formatted-messages.md).

# Formatted Messages

These can be formatted with the use of Java's formatter:

```java
Logger logger = LogManager.getFormatterLogger("Foo");

logger.debug("Logging in user %s", user.getName());
```
