ing
This commit is contained in:
parent
ca823a2e69
commit
be0bc8cfd6
|
@ -1,27 +0,0 @@
|
||||||
{
|
|
||||||
"level": "debug",
|
|
||||||
"development": true,
|
|
||||||
"disableCaller": true,
|
|
||||||
"disableStacktrace": true,
|
|
||||||
"sampling": {
|
|
||||||
"initial": 100,
|
|
||||||
"thereafter": 100
|
|
||||||
},
|
|
||||||
"encoding": "console",
|
|
||||||
"encoderConfig": {
|
|
||||||
"messageKey": "message",
|
|
||||||
"levelKey": "level",
|
|
||||||
"timeKey": "time",
|
|
||||||
"nameKey": "name",
|
|
||||||
"callerKey": "caller",
|
|
||||||
"stacktraceKey": "stacktrace",
|
|
||||||
"lineEnding": "\n",
|
|
||||||
"levelEncoder": "color",
|
|
||||||
"timeEncoder": "ISO8601",
|
|
||||||
"durationEncoder": "string",
|
|
||||||
"callerEncoder": "full",
|
|
||||||
"nameEncoder": "full"
|
|
||||||
},
|
|
||||||
"outputPaths": ["/project/go/src/git.loafle.net/overflow/probe/_build/logs/container_general.log"],
|
|
||||||
"errorOutputPaths": ["stderr"]
|
|
||||||
}
|
|
21
_build/bin/general.logging.xml
Normal file
21
_build/bin/general.logging.xml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<configuration scan="true" scanPeriod="3 seconds">
|
||||||
|
<contextName>central</contextName>
|
||||||
|
<!-- TRACE > DEBUG > INFO > WARN > ERROR -->
|
||||||
|
<appender name="TIME_BASED_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||||
|
<file>/project/go/src/git.loafle.net/overflow/probe/_build/logs/container_general.log</file>
|
||||||
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||||
|
<!-- daily rollover -->
|
||||||
|
<fileNamePattern>/project/go/src/git.loafle.net/overflow/probe/_build/logs/container_general.%d{yyyy-MM-dd-HH-mm}.log</fileNamePattern>
|
||||||
|
<maxHistory>30</maxHistory>
|
||||||
|
</rollingPolicy>
|
||||||
|
<encoder>
|
||||||
|
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{32} - %msg%n</pattern>
|
||||||
|
</encoder>
|
||||||
|
</appender>
|
||||||
|
|
||||||
|
<root level="DEBUG">
|
||||||
|
<appender-ref ref="TIME_BASED_FILE" />
|
||||||
|
</root>
|
||||||
|
<logger name="com.loafle.overflow" level="ALL" />
|
||||||
|
</configuration>
|
|
@ -174,7 +174,7 @@ func cotainerCommand(containerType occp.ContainerType) (cmd *exec.Cmd) {
|
||||||
"-jar",
|
"-jar",
|
||||||
binFilePath,
|
binFilePath,
|
||||||
strconv.FormatInt(config.ProbePortNumber, 10),
|
strconv.FormatInt(config.ProbePortNumber, 10),
|
||||||
loggingConfigFilePath,
|
fmt.Sprintf("-Dlogging.config=%s", loggingConfigFilePath),
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd = exec.Command(config.JavaBinPath(), args...)
|
cmd = exec.Command(config.JavaBinPath(), args...)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user