File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ # How to enable UTBot logging in IntelliJ IDEA
2+
3+ In UTBot we use loggers like the following one:
4+
5+
6+ `val logger = Logger.getInstance(CodeGenerator::class.java)`
7+
8+
9+ Instead of sending loggers output in the standard stream or a file, we can put them right into IntelliJ IDEA. So, let\`s do it then! 😃
10+
11+
12+ 1. In UTBot repository find Gradle > Tasks > intellij > runIde and choose it with the right button click
13+
14+ 
15+
16+
17+ 2. Select Modify Run Configuration... item, and then Modify options > Specify logs to be shown in console
18+
19+ 
20+
21+
22+ 3. Click ➕ and add new Idea log file (or choose any name you want for it 😉) in the Log files to be shown in console section
23+
24+ 
25+
26+
27+ 4. Restart the 'runIde' task, check that the new tab is present in your IDE
28+
29+ 
30+
31+
32+ 5. And we\`re done! 😃 Narrow logging messages to the loggers you are interested in
33+
34+ 
35+
36+
37+ If you want to use the existing loggers in UTBot or you`re a contributor and you have your own loggers to add, please watch [this article](HowToUseLoggers.md) to know how to do it in a better way.
38+
You can’t perform that action at this time.
0 commit comments