mirror of
https://github.com/amithkoujalgi/ollama4j.git
synced 2025-10-14 01:18:58 +02:00

Moved and renamed several API documentation files for better organization, updated sidebar positions, and merged image generation docs. Added logging documentation and updated Makefile commands for docs build and serve. Improved clarity and consistency in API doc titles and structure.
26 lines
500 B
Markdown
26 lines
500 B
Markdown
---
|
|
sidebar_position: 7
|
|
---
|
|
|
|
# Logging
|
|
|
|
### Using with SLF4J and Logback
|
|
|
|
Add a `logback.xml` file to your `src/main/resources` folder with the following content:
|
|
|
|
```xml
|
|
|
|
<configuration>
|
|
<root level="DEBUG">
|
|
<appender-ref ref="STDOUT"/>
|
|
</root>
|
|
|
|
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
|
<encoder>
|
|
<pattern>%d{yyyy-MM-dd HH:mm:ss} %-5level %logger{36} - %msg%n</pattern>
|
|
</encoder>
|
|
</appender>
|
|
|
|
</configuration>
|
|
|
|
``` |