From be0bc8cfd6e7a276ea54325f268a310aef05fe30 Mon Sep 17 00:00:00 2001 From: crusader Date: Fri, 4 May 2018 17:38:05 +0900 Subject: [PATCH] ing --- _build/bin/general.logging.json | 27 --------------------------- _build/bin/general.logging.xml | 21 +++++++++++++++++++++ container/container-session.go | 2 +- 3 files changed, 22 insertions(+), 28 deletions(-) delete mode 100644 _build/bin/general.logging.json create mode 100644 _build/bin/general.logging.xml diff --git a/_build/bin/general.logging.json b/_build/bin/general.logging.json deleted file mode 100644 index b383ff8..0000000 --- a/_build/bin/general.logging.json +++ /dev/null @@ -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"] -} diff --git a/_build/bin/general.logging.xml b/_build/bin/general.logging.xml new file mode 100644 index 0000000..fcd31b6 --- /dev/null +++ b/_build/bin/general.logging.xml @@ -0,0 +1,21 @@ + + + central + + + /project/go/src/git.loafle.net/overflow/probe/_build/logs/container_general.log + + + /project/go/src/git.loafle.net/overflow/probe/_build/logs/container_general.%d{yyyy-MM-dd-HH-mm}.log + 30 + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{32} - %msg%n + + + + + + + + \ No newline at end of file diff --git a/container/container-session.go b/container/container-session.go index f7e2186..7edee1e 100644 --- a/container/container-session.go +++ b/container/container-session.go @@ -174,7 +174,7 @@ func cotainerCommand(containerType occp.ContainerType) (cmd *exec.Cmd) { "-jar", binFilePath, strconv.FormatInt(config.ProbePortNumber, 10), - loggingConfigFilePath, + fmt.Sprintf("-Dlogging.config=%s", loggingConfigFilePath), } cmd = exec.Command(config.JavaBinPath(), args...)