Markdown编辑器测试
texttexttexttexttexttexttexttexttexttexttexttext
texttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttextte
Java
public class OTA_AirLowFareSearch extends MessageProcessorBase {
private static final Logger cat = Logger.getLogger("AirLowSearchLogger");
private static final Logger pricingCat = Logger.getLogger("PricingLogger");
private Map<String, OriginDestinationInformation> originDestinationInformationMap = null;
public class OTA_AirLowFareSearch extends MessageProcessorBase {
private static final Logger cat = Logger.getLogger("AirLowSearchLogger");
private static final Logger pricingCat = Logger.getLogger("PricingLogger");
private Map<String, OriginDestinationInformation> originDestinationInformationMap = null;
public class OTA_AirLowFareSearch extends MessageProcessorBase {
private static final Logger cat = Logger.getLogger("AirLowSearchLogger");
private static final Logger pricingCat = Logger.getLogger("PricingLogger");
private Map<String, OriginDestinationInformation> originDestinationInformationMap = null;
xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<!-- 配置控制台输出器 -->
<appender name="STDOUT" class="org.apache.log4j.ConsoleAppender">
<param name="threshold" value="info"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %-5p [%t] (%F:%L) - %m%n"/>
</layout>
</appender>
<appender name="STDOUT.ASYNC" class="org.apache.log4j.AsyncAppender">
<param name="BufferSize" value="8192" />
<appender-ref ref="STDOUT"/>
</appender>
<!-- 配置全局日志daily.log -->
<appender name="APP.DAILY" class="org.apache.log4j.DailyRollingFileAppender">
<param name="file" value="/opt/applog/Anka/daily.log"/>
<param name="threshold" value="info"/>
<param name="append" value="true"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="'%d', '%p', '%t', '%c', '%m'%n"/>
</layout>
</appender>
<appender name="APP.DAILY.ASYNC" class="org.apache.log4j.AsyncAppender">
<param name="BufferSize" value="8192" />
<appender-ref ref="APP.DAILY"/>
</appender>
<!-- observer改动 -->
<!--<appender name="OBSERVER_SDK" class="org.apache.log4j.DailyRollingFileAppender">
<param name="file" value="/opt/applog/observer_sdk/Anka.log"/>
<param name="threshold" value="info"/>
<param name="append" value="true"/>
<param name="encoding" value="GBK" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="'%d{yyyy-MM-dd HH:mm:ss,SSS}', '%p','%t','%c', '%m'%n" />
</layout>
</appender>
<logger name="com.ceair.observersdk" additivity="false">
<level value="info" />
<appender-ref ref="OBSERVER_SDK"/>
</logger> -->
<root>
<!-- 在生产环境不要向控制台输出日志 -->
<appender-ref ref="STDOUT"/>
<appender-ref ref="APP.DAILY"/>
</root>
</log4j:configuration>
publc void test1(){}
publc void test2(){}
Heading
Heading
Heading
1
2
3
texttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttextte