summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kutsan <AKutsan@luxoft.com>2015-07-10 10:54:13 +0300
committerAlexander Kutsan <AKutsan@luxoft.com>2015-07-17 17:27:27 +0300
commita5c815ca839e70010a7a5809dc22dcd9903b9144 (patch)
tree3703142dd88ec636be1cdd1e16e47a4f7b00a3c7
parent89f3a68b46674e5e88d3da612ea50287b8b317ff (diff)
downloadsdl_core-a5c815ca839e70010a7a5809dc22dcd9903b9144.tar.gz
Add Telnet logging
netcat can't collect logs via SocketHub or socket because of specific log4cxx binary format of logs Add to log4cxx.properties logging via telnet to collect this logs with netcat or telnet in raw text format Related Issues: APPLINK-14183
-rw-r--r--src/appMain/log4cxx.properties10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/appMain/log4cxx.properties b/src/appMain/log4cxx.properties
index 6a12f8c9b5..28b44a2e35 100644
--- a/src/appMain/log4cxx.properties
+++ b/src/appMain/log4cxx.properties
@@ -3,6 +3,14 @@ log4j.appender.SmartDeviceLinkCoreSocketHub=org.apache.log4j.net.SocketHubAppend
log4j.appender.SmartDeviceLinkCoreSocketHub.port=4555
log4j.appender.SmartDeviceLinkCoreSocketHub.locationInfo=true
+# Logging via telnet
+log4j.appender.TelnetLogging=org.apache.log4j.TelnetAppender
+log4j.appender.TelnetLogging.port=6676
+log4j.appender.TelnetLogging.layout=org.apache.log4j.PatternLayout
+log4j.appender.TelnetLogging.layout.ConversionPattern=%-5p [%d{dd MMM yyyy HH:mm:ss,SSS}][%t][%c] %F:%L %M: %m%n
+
+
+
# Only ERROR and FATAL messages are logged to console
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.ImmediateFlush=true
@@ -56,7 +64,7 @@ log4j.appender.ProtocolFordHandlingLogFile.layout=org.apache.log4j.PatternLayout
log4j.appender.ProtocolFordHandlingLogFile.layout.ConversionPattern=%-5p [%d{dd MMM yyyy HH:mm:ss,SSS}][%c] %M: %m%n
# All SmartDeviceLinkCore logs
-log4j.rootLogger=ALL, Console, SmartDeviceLinkCoreLogFile, SmartDeviceLinkCoreSocketHub
+log4j.rootLogger=ALL, Console, SmartDeviceLinkCoreLogFile, SmartDeviceLinkCoreSocketHub, TelnetLogging
# TransportManager logs
log4j.logger.TransportManager=ALL, TransportManagerLogFile