mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-15 15:55:54 +10:00
[강운덕] [LUCYSUS-1744] 일부 로그의 출력내용을 PintPoint로 변경함.
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-profiler-bootstrap/trunk@1483 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -5,5 +5,5 @@ package com.profiler;
|
||||
*/
|
||||
public final class ProductInfo {
|
||||
public static final String NAME = "pinpoint";
|
||||
public static final String NAME_CAMEL = "PinPoint";
|
||||
public static final String CAMEL_NAME = "PinPoint";
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@ package com.profiler.bootstrap;
|
||||
|
||||
import com.profiler.ProductInfo;
|
||||
import com.profiler.config.ProfilerConfig;
|
||||
import com.profiler.logging.LoggerBinder;
|
||||
import com.profiler.logging.LoggerFactory;
|
||||
|
||||
import java.lang.instrument.Instrumentation;
|
||||
import java.net.URL;
|
||||
@@ -24,7 +22,7 @@ public class TomcatBootStrap {
|
||||
|
||||
public static void premain(String agentArgs, Instrumentation instrumentation) {
|
||||
if (agentArgs != null) {
|
||||
logger.info(ProductInfo.NAME_CAMEL + " agentArgs:" + agentArgs);
|
||||
logger.info(ProductInfo.CAMEL_NAME + " agentArgs:" + agentArgs);
|
||||
}
|
||||
if (logger.isLoggable(Level.FINE)) {
|
||||
dumpSystemProperties();
|
||||
@@ -59,7 +57,7 @@ public class TomcatBootStrap {
|
||||
agentClassLoader.boot(agentArgs, instrumentation, profilerConfig);
|
||||
|
||||
} catch (Exception e) {
|
||||
logger.log(Level.SEVERE, ProductInfo.NAME_CAMEL + " start fail. Caused:" + e.getMessage(), e);
|
||||
logger.log(Level.SEVERE, ProductInfo.CAMEL_NAME + " start fail. Caused:" + e.getMessage(), e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -4,26 +4,22 @@ import java.text.DateFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
|
||||
public class ProfilerConstant {
|
||||
public final static DateFormat DATE_FORMAT_YMD_HMS = new SimpleDateFormat("yyyy_MM_dd_HH_mm_ss");
|
||||
public final static DateFormat DATE_FORMAT_HMS_MS = new SimpleDateFormat("HH:mm:ss,SSS");
|
||||
public static final long DATA_FETCH_INTERVAL = 2000;
|
||||
|
||||
public static final int DATA_TYPE_REQUEST = 1;
|
||||
public static final int DATA_TYPE_RESPONSE = 2;
|
||||
public static final int DATA_TYPE_UNCAUGHT_EXCEPTION = 11;
|
||||
|
||||
|
||||
public static final String CLASS_NAME_REQUEST_THRIFT_DTO = "RequestThriftDTO";
|
||||
|
||||
|
||||
|
||||
public static final int REQ_DATA_TYPE_DB_GET_CONNECTION = 1;
|
||||
public static final int REQ_DATA_TYPE_DB_CREATE_STATEMENT = 11;
|
||||
public static final int REQ_DATA_TYPE_DB_GET_PREPARED_STATEMENT = 12;
|
||||
|
||||
public static final int REQ_DATA_TYPE_DB_QUERY = 21;
|
||||
public static final int REQ_DATA_TYPE_DB_EXECUTE_QUERY = 31;
|
||||
public static final int REQ_DATA_TYPE_DB_EXECUTE_UPDATE = 32;
|
||||
public static final int REQ_DATA_TYPE_DB_FETCH = 41;
|
||||
public static final int REQ_DATA_TYPE_DB_RESULTSET_CLOSE = 42;
|
||||
|
||||
public static final int REQ_DATA_TYPE_DB_PREPARED_STATEMENT_PARAM = 51;
|
||||
public static final int REQ_DATA_TYPE_DB_CLOSE_CONNECTION = 99;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user