Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions HowToUseLoggers.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The file is usually in the resource folder.

The easiest way is:

- Go in the code that you are going to debug. Let’s assume it is a method in com.home.utbot.framework.plugin.api.UtBotTestCaseGenerator.
- Go in the code that you are going to debug. Let’s assume it is a method in org.utbot.framework.plugin.api.UtBotTestCaseGenerator.
- Find out if there is a KotlinLogging object that is used to create a **logger**
- If such a logger exists, use the fully qualified class name as the logger name in the next steps
<br/>
Expand All @@ -28,7 +28,7 @@ The easiest way is:
Open log4j2.xml and add the logger in the loggers section like this

```
<Logger name=" com.home.utbot.framework.plugin.api.UtBotTestCaseGenerator " level="info">
<Logger name=" org.utbot.framework.plugin.api.UtBotTestCaseGenerator " level="info">
<AppenderRef ref="Console"/>
</Logger>
```
Expand Down Expand Up @@ -78,6 +78,6 @@ Having this logger, you can use it in code with different log levels in parallel
3. Find the closest log4j2.xml file (usually it is located in the resources file), enable the logger with a desirable log level


`<Logger name="com.huawei.utbot.engine.UtBotSymbolicEngine.timeout" level="debug"/>`
`<Logger name="org.utbot.engine.UtBotSymbolicEngine.timeout" level="debug"/>`