File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed
utbot-instrumentation/src/main/kotlin/org/utbot/instrumentation/process
utbot-summary/src/main/kotlin/org/utbot/summary Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,14 @@ where places log files. Logs are written by `RollingFileAppender` in `utbot-engi
95
95
after file reaches 20MB size. Previous log files are named ` utbot-engine-%i.log ` . Log file with
96
96
maximal index is the last one rolled. For example, ` utbot-engine-1.log ` is created earlier than ` utbot-engine-10.log ` .
97
97
98
+ Default log file directory is ` %user_temp%/UtBot/rdEngineProcessLogs ` .
99
+ In IDEA log following line are print each time engine process started:
100
+ ```
101
+ | UtBot - EngineProcess | Engine process started with PID = 4172
102
+ | UtBot - EngineProcess | Engine process log directory - C:\Users\kwx1183156\AppData\Local\Temp\UTBot\rdEngineProcessLogs
103
+ | UtBot - EngineProcess | Engine process log file - C:\Users\KWX118~1\AppData\Local\Temp\UTBot\rdEngineProcessLogs\utbot-engine-current.log
104
+ ```
105
+
98
106
### Useful
99
107
See auxiliary methods to work with logs at ` UtRdLogUtil.kt ` and ` Logging.kt ` .
100
108
If you want to trace how long execution took - use ` org.utbot.common.LoggingKt.bracket `
Original file line number Diff line number Diff line change @@ -45,7 +45,11 @@ class InstrumentedProcessRunner {
45
45
.directory(directory)
46
46
47
47
return processBuilder.start().also {
48
- logger.info { " --------Instrumented process started with PID=${it.getPid} --------" }
48
+ logger.info {
49
+ " ------------------------------------------------------------------\n " +
50
+ " --------Instrumented process started with PID=${it.getPid} --------\n " +
51
+ " ------------------------------------------------------------------"
52
+ }
49
53
}
50
54
}
51
55
Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ import soot.SootMethod
39
39
private val logger = KotlinLogging .logger {}
40
40
41
41
fun Collection<UtMethodTestSet>.summarizeAll (searchDirectory : Path , sourceFile : File ? ): List <UtMethodTestSet > = logger.info().bracket({
42
- " -----------------------------------------------------------------------------------------" +
43
- " ------------------------Summarization started for ${this .size} test cases------------------------" +
44
- " -----------------------------------------------------------------------------------------"
42
+ " ------------------------------------------------------------------------------------------------- \n " +
43
+ " ------------------------Summarization started for ${this .size} test cases------------------------\n " +
44
+ " ------------------------------------------------------------------------------------------------- "
45
45
}) {
46
46
this .map {
47
47
it.summarizeOne(searchDirectory, sourceFile)
You can’t perform that action at this time.
0 commit comments