├── INSTALL ├── KEYS ├── LICENSE ├── NOTICE ├── NTEventLogAppender.amd64.dll ├── README.md ├── build.properties.sample ├── build.xml ├── contribs ├── CONTENTS ├── CekiGulcu │ ├── AppenderTable.java │ └── Transform.java ├── EirikLygre │ ├── DailyFileAppender1.java │ └── mail-2001-01-18 ├── JamesHouse │ ├── LogTextPanel.java │ ├── LogTextPanelExample.java │ ├── TextPanelAppender.java │ └── mail-2001-01-23 ├── Jamie Tsao │ ├── JMSQueueAppender.java │ └── mail-2001-06-20 ├── JimMoore │ ├── LoggingOutputStream.java │ ├── mail-2001-03-12T1326 │ ├── mail-2001-03-12T1454 │ └── mail-2001-03-13T0646 ├── KevinSteppe │ ├── CompositeRollingAppender.java │ ├── JDBCTest.java │ ├── mail-2001-02-01 │ └── mail-2002-03-27.txt ├── KitchingSimon │ ├── DatagramStringAppender.java │ ├── DatagramStringWriter.java │ ├── SingleLineTracerPrintWriter.java │ ├── logconfig.xml │ ├── mail-2001-02-07 │ └── udpserver.pl ├── LeosLiterak │ ├── TempFileAppender.java │ └── mail ├── MarkDouglas │ ├── Log.txt │ ├── SocketNode2.java │ ├── SocketServer2.java │ └── mail-2001-01-17 ├── SvenReimers │ └── gui │ │ ├── JListView.java │ │ ├── JTableAppender.java │ │ ├── TextPaneAppender.java │ │ └── examples │ │ └── TextPaneAppenderExample.java ├── ThomasFenner │ ├── JDBCAppender.java │ ├── JDBCConnectionHandler.java │ ├── JDBCIDHandler.java │ ├── JDBCLogger.java │ ├── Log4JTest.java │ ├── code_example1.java │ ├── code_example2.java │ └── configfile_example.txt └── VolkerMentzner │ ├── HTTPRequestHandler.java │ ├── Log4jRequestHandler.java │ ├── PluggableHTTPServer.java │ ├── RootRequestHandler.java │ ├── UserDialogRequestHandler.java │ └── mail-03-05-2001 ├── doap_log4j.rdf ├── examples ├── MyPatternLayout.java ├── MyPatternParser.java ├── NumberCruncher.java ├── NumberCruncherClient.java ├── NumberCruncherServer.java ├── Sort.java ├── SortAlgo.java ├── Trivial.java ├── customLevel │ └── XLevel.java ├── factor.html ├── factor.lcf ├── lf5 │ ├── InitUsingDefaultConfigurator │ │ └── InitUsingDefaultConfigurator.java │ ├── InitUsingLog4JProperties │ │ ├── InitUsingLog4JProperties.java │ │ └── log4j.properties │ ├── InitUsingMultipleAppenders │ │ ├── InitUsingMultipleAppenders.java │ │ └── example.properties │ ├── InitUsingPropertiesFile │ │ ├── InitUsingPropertiesFile.java │ │ └── example.properties │ ├── InitUsingXMLPropertiesFile │ │ ├── InitUsingXMLPropertiesFile.java │ │ └── example.xml │ ├── UsingLogMonitorAdapter │ │ ├── CustomizedLogLevels.java │ │ └── UsingLogMonitorAdapter.java │ ├── UsingSocketAppenders │ │ ├── UsingSocketAppenders.java │ │ ├── socketclient.properties │ │ └── socketserver.properties │ └── index.html ├── mycat.bad ├── mycat.good ├── package.html ├── sort1.properties ├── sort2.properties ├── sort3.properties ├── sort4.properties └── subclass │ ├── MyLogger.java │ ├── MyLoggerFactory.java │ └── MyLoggerTest.java ├── pom.xml ├── src ├── assembly │ └── bin.xml ├── changes │ └── changes.xml ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── log4j │ │ │ ├── Appender.java │ │ │ ├── AppenderSkeleton.java │ │ │ ├── AsyncAppender.java │ │ │ ├── BasicConfigurator.java │ │ │ ├── Category.java │ │ │ ├── CategoryKey.java │ │ │ ├── ConsoleAppender.java │ │ │ ├── DailyRollingFileAppender.java │ │ │ ├── DefaultCategoryFactory.java │ │ │ ├── DefaultThrowableRenderer.java │ │ │ ├── Dispatcher.java │ │ │ ├── EnhancedPatternLayout.java │ │ │ ├── EnhancedThrowableRenderer.java │ │ │ ├── FileAppender.java │ │ │ ├── HTMLLayout.java │ │ │ ├── Hierarchy.java │ │ │ ├── Layout.java │ │ │ ├── Level.java │ │ │ ├── LogMF.java │ │ │ ├── LogManager.java │ │ │ ├── LogSF.java │ │ │ ├── LogXF.java │ │ │ ├── Logger.java │ │ │ ├── MDC.java │ │ │ ├── NDC.java │ │ │ ├── PatternLayout.java │ │ │ ├── Priority.java │ │ │ ├── PropertyConfigurator.java │ │ │ ├── ProvisionNode.java │ │ │ ├── RollingFileAppender.java │ │ │ ├── SimpleLayout.java │ │ │ ├── TTCCLayout.java │ │ │ ├── WriterAppender.java │ │ │ ├── chainsaw │ │ │ ├── ControlPanel.java │ │ │ ├── DetailPanel.java │ │ │ ├── EventDetails.java │ │ │ ├── ExitAction.java │ │ │ ├── LoadXMLAction.java │ │ │ ├── LoggingReceiver.java │ │ │ ├── Main.java │ │ │ ├── MyTableModel.java │ │ │ ├── XMLFileHandler.java │ │ │ ├── doc-files │ │ │ │ └── screen_01.png │ │ │ └── package.html │ │ │ ├── config │ │ │ ├── PropertyGetter.java │ │ │ ├── PropertyPrinter.java │ │ │ ├── PropertySetter.java │ │ │ ├── PropertySetterException.java │ │ │ └── package.html │ │ │ ├── helpers │ │ │ ├── AbsoluteTimeDateFormat.java │ │ │ ├── AppenderAttachableImpl.java │ │ │ ├── BoundedFIFO.java │ │ │ ├── CountingQuietWriter.java │ │ │ ├── CyclicBuffer.java │ │ │ ├── DateLayout.java │ │ │ ├── DateTimeDateFormat.java │ │ │ ├── FileWatchdog.java │ │ │ ├── FormattingInfo.java │ │ │ ├── ISO8601DateFormat.java │ │ │ ├── Loader.java │ │ │ ├── LogLog.java │ │ │ ├── MDCKeySetExtractor.java │ │ │ ├── NullEnumeration.java │ │ │ ├── OnlyOnceErrorHandler.java │ │ │ ├── OptionConverter.java │ │ │ ├── PatternConverter.java │ │ │ ├── PatternParser.java │ │ │ ├── QuietWriter.java │ │ │ ├── RelativeTimeDateFormat.java │ │ │ ├── SyslogQuietWriter.java │ │ │ ├── SyslogWriter.java │ │ │ ├── ThreadLocalMap.java │ │ │ ├── Transform.java │ │ │ ├── UtilLoggingLevel.java │ │ │ └── package.html │ │ │ ├── jdbc │ │ │ ├── JDBCAppender.java │ │ │ └── package.html │ │ │ ├── jmx │ │ │ ├── AbstractDynamicMBean.java │ │ │ ├── Agent.java │ │ │ ├── AppenderDynamicMBean.java │ │ │ ├── HierarchyDynamicMBean.java │ │ │ ├── LayoutDynamicMBean.java │ │ │ ├── LoggerDynamicMBean.java │ │ │ ├── MethodUnion.java │ │ │ └── package.html │ │ │ ├── lf5 │ │ │ ├── AppenderFinalizer.java │ │ │ ├── DefaultLF5Configurator.java │ │ │ ├── LF5Appender.java │ │ │ ├── Log4JLogRecord.java │ │ │ ├── LogLevel.java │ │ │ ├── LogLevelFormatException.java │ │ │ ├── LogRecord.java │ │ │ ├── LogRecordFilter.java │ │ │ ├── PassingLogRecordFilter.java │ │ │ ├── StartLogFactor5.java │ │ │ ├── util │ │ │ │ ├── AdapterLogRecord.java │ │ │ │ ├── DateFormatManager.java │ │ │ │ ├── LogFileParser.java │ │ │ │ ├── LogMonitorAdapter.java │ │ │ │ ├── Resource.java │ │ │ │ ├── ResourceUtils.java │ │ │ │ └── StreamUtils.java │ │ │ └── viewer │ │ │ │ ├── FilteredLogTableModel.java │ │ │ │ ├── LF5SwingUtils.java │ │ │ │ ├── LogBrokerMonitor.java │ │ │ │ ├── LogFactor5Dialog.java │ │ │ │ ├── LogFactor5ErrorDialog.java │ │ │ │ ├── LogFactor5InputDialog.java │ │ │ │ ├── LogFactor5LoadingDialog.java │ │ │ │ ├── LogTable.java │ │ │ │ ├── LogTableColumn.java │ │ │ │ ├── LogTableColumnFormatException.java │ │ │ │ ├── LogTableModel.java │ │ │ │ ├── LogTableRowRenderer.java │ │ │ │ ├── TrackingAdjustmentListener.java │ │ │ │ ├── categoryexplorer │ │ │ │ ├── CategoryAbstractCellEditor.java │ │ │ │ ├── CategoryElement.java │ │ │ │ ├── CategoryExplorerLogRecordFilter.java │ │ │ │ ├── CategoryExplorerModel.java │ │ │ │ ├── CategoryExplorerTree.java │ │ │ │ ├── CategoryImmediateEditor.java │ │ │ │ ├── CategoryNode.java │ │ │ │ ├── CategoryNodeEditor.java │ │ │ │ ├── CategoryNodeEditorRenderer.java │ │ │ │ ├── CategoryNodeRenderer.java │ │ │ │ ├── CategoryPath.java │ │ │ │ └── TreeModelAdapter.java │ │ │ │ └── configure │ │ │ │ ├── ConfigurationManager.java │ │ │ │ └── MRUFileManager.java │ │ │ ├── net │ │ │ ├── JMSAppender.java │ │ │ ├── JMSSink.java │ │ │ ├── SMTPAppender.java │ │ │ ├── SimpleSocketServer.java │ │ │ ├── SocketAppender.java │ │ │ ├── SocketHubAppender.java │ │ │ ├── SocketNode.java │ │ │ ├── SocketServer.java │ │ │ ├── SyslogAppender.java │ │ │ ├── TelnetAppender.java │ │ │ ├── ZeroConfSupport.java │ │ │ └── package.html │ │ │ ├── nt │ │ │ ├── NTEventLogAppender.java │ │ │ └── package.html │ │ │ ├── or │ │ │ ├── DefaultRenderer.java │ │ │ ├── ObjectRenderer.java │ │ │ ├── RendererMap.java │ │ │ ├── ThreadGroupRenderer.java │ │ │ ├── jms │ │ │ │ ├── MessageRenderer.java │ │ │ │ └── package.html │ │ │ ├── package.html │ │ │ └── sax │ │ │ │ ├── AttributesRenderer.java │ │ │ │ └── package.html │ │ │ ├── package.html │ │ │ ├── pattern │ │ │ ├── BridgePatternConverter.java │ │ │ ├── BridgePatternParser.java │ │ │ ├── CachedDateFormat.java │ │ │ ├── ClassNamePatternConverter.java │ │ │ ├── DatePatternConverter.java │ │ │ ├── FileDatePatternConverter.java │ │ │ ├── FileLocationPatternConverter.java │ │ │ ├── FormattingInfo.java │ │ │ ├── FullLocationPatternConverter.java │ │ │ ├── IntegerPatternConverter.java │ │ │ ├── LevelPatternConverter.java │ │ │ ├── LineLocationPatternConverter.java │ │ │ ├── LineSeparatorPatternConverter.java │ │ │ ├── LiteralPatternConverter.java │ │ │ ├── LogEvent.java │ │ │ ├── LoggerPatternConverter.java │ │ │ ├── LoggingEventPatternConverter.java │ │ │ ├── MessagePatternConverter.java │ │ │ ├── MethodLocationPatternConverter.java │ │ │ ├── NDCPatternConverter.java │ │ │ ├── NameAbbreviator.java │ │ │ ├── NamePatternConverter.java │ │ │ ├── PatternConverter.java │ │ │ ├── PatternParser.java │ │ │ ├── PropertiesPatternConverter.java │ │ │ ├── RelativeTimePatternConverter.java │ │ │ ├── SequenceNumberPatternConverter.java │ │ │ ├── ThreadPatternConverter.java │ │ │ ├── ThrowableInformationPatternConverter.java │ │ │ └── package.html │ │ │ ├── rewrite │ │ │ ├── MapRewritePolicy.java │ │ │ ├── PropertyRewritePolicy.java │ │ │ ├── ReflectionRewritePolicy.java │ │ │ ├── RewriteAppender.java │ │ │ └── RewritePolicy.java │ │ │ ├── spi │ │ │ ├── AppenderAttachable.java │ │ │ ├── Configurator.java │ │ │ ├── DefaultRepositorySelector.java │ │ │ ├── ErrorCode.java │ │ │ ├── ErrorHandler.java │ │ │ ├── Filter.java │ │ │ ├── HierarchyEventListener.java │ │ │ ├── LocationInfo.java │ │ │ ├── LoggerFactory.java │ │ │ ├── LoggerRepository.java │ │ │ ├── LoggingEvent.java │ │ │ ├── NOPLogger.java │ │ │ ├── NOPLoggerRepository.java │ │ │ ├── NullWriter.java │ │ │ ├── OptionHandler.java │ │ │ ├── RendererSupport.java │ │ │ ├── RepositorySelector.java │ │ │ ├── RootCategory.java │ │ │ ├── RootLogger.java │ │ │ ├── ThrowableInformation.java │ │ │ ├── ThrowableRenderer.java │ │ │ ├── ThrowableRendererSupport.java │ │ │ ├── TriggeringEventEvaluator.java │ │ │ ├── VectorWriter.java │ │ │ └── package.html │ │ │ ├── varia │ │ │ ├── DenyAllFilter.java │ │ │ ├── ExternallyRolledFileAppender.java │ │ │ ├── FallbackErrorHandler.java │ │ │ ├── LevelMatchFilter.java │ │ │ ├── LevelRangeFilter.java │ │ │ ├── NullAppender.java │ │ │ ├── ReloadingPropertyConfigurator.java │ │ │ ├── Roller.java │ │ │ ├── StringMatchFilter.java │ │ │ └── package.html │ │ │ └── xml │ │ │ ├── DOMConfigurator.java │ │ │ ├── Log4jEntityResolver.java │ │ │ ├── SAXErrorHandler.java │ │ │ ├── UnrecognizedElementHandler.java │ │ │ ├── XMLLayout.java │ │ │ └── package.html │ ├── javadoc │ │ └── org │ │ │ └── apache │ │ │ └── log4j │ │ │ └── xml │ │ │ ├── doc-files │ │ │ └── log4j.dtd │ │ │ └── examples │ │ │ ├── XMLSample.java │ │ │ └── doc-files │ │ │ ├── XMLSample.java │ │ │ ├── sample1.xml │ │ │ ├── sample2.xml │ │ │ ├── sample3.xml │ │ │ ├── sample4.xml │ │ │ └── sample5.xml │ └── resources │ │ ├── META-INF │ │ ├── LICENSE │ │ └── NOTICE │ │ └── org │ │ └── apache │ │ └── log4j │ │ ├── lf5 │ │ ├── config │ │ │ └── defaultconfig.properties │ │ └── viewer │ │ │ └── images │ │ │ ├── channelexplorer_new.gif │ │ │ ├── channelexplorer_satellite.gif │ │ │ └── lf5_small_icon.gif │ │ └── xml │ │ └── log4j.dtd ├── ntdll │ ├── EventLogCategories.mc │ ├── MSG00001.bin │ ├── NTEventLogAppender.def │ ├── NTEventLogAppender.rc │ ├── build.xml │ └── nteventlog.cpp ├── performance │ └── java │ │ └── org │ │ └── apache │ │ └── log4j │ │ └── performance │ │ ├── ListVsVector.java │ │ ├── NOPWriter.java │ │ ├── NewVsSetLen.java │ │ ├── NullAppender.java │ │ ├── SystemTime.java │ │ ├── history │ │ ├── FALKNIS.logging │ │ ├── GIL.logging │ │ ├── NAPOLI.logging │ │ └── TORINO.logging │ │ ├── logging │ │ ├── package.html │ │ └── xml │ │ ├── logging1.xml │ │ ├── logging10.xml │ │ ├── logging100.xml │ │ ├── logging1000.xml │ │ ├── logging101.xml │ │ ├── logging102.xml │ │ ├── logging103.xml │ │ ├── logging104.xml │ │ ├── logging105.xml │ │ ├── logging106.xml │ │ ├── logging107.xml │ │ ├── logging11.xml │ │ ├── logging12.xml │ │ ├── logging13.xml │ │ ├── logging2.xml │ │ ├── logging200.xml │ │ ├── logging201.xml │ │ ├── logging202.xml │ │ ├── logging203.xml │ │ ├── logging204.xml │ │ ├── logging205.xml │ │ ├── logging206.xml │ │ ├── logging207.xml │ │ ├── logging220.xml │ │ ├── logging221.xml │ │ ├── logging222.xml │ │ ├── logging223.xml │ │ ├── logging224.xml │ │ ├── logging225.xml │ │ ├── logging226.xml │ │ ├── logging227.xml │ │ ├── logging3.xml │ │ ├── logging300.xml │ │ ├── logging301.xml │ │ ├── logging302.xml │ │ ├── logging303.xml │ │ ├── logging304.xml │ │ ├── logging305.xml │ │ ├── logging306.xml │ │ ├── logging307.xml │ │ ├── logging4.xml │ │ ├── logging5.xml │ │ ├── logging6.xml │ │ ├── logging7.xml │ │ ├── logging8.xml │ │ └── logging9.xml └── site │ ├── apt │ ├── download.apt │ ├── index.apt │ ├── publications.apt │ └── roadmap.apt │ ├── fml │ └── faq.fml │ ├── maven-site.vm │ ├── resources │ ├── css │ │ ├── maven-base.css │ │ └── site.css │ └── images │ │ ├── logo.jpg │ │ ├── ls-logo.jpg │ │ ├── maven-feather.png │ │ └── od.gif │ ├── site.xml │ └── xdoc │ ├── building.xml │ └── manual.xml └── tests ├── README ├── build.properties.sample ├── build.xml ├── input ├── RFA1.properties ├── defaultInit3.properties ├── fallback1.properties ├── filter1.properties ├── hierarchyThreshold1.properties ├── hierarchyThreshold2.properties ├── hierarchyThreshold3.properties ├── hierarchyThreshold4.properties ├── hierarchyThreshold5.properties ├── hierarchyThreshold6.properties ├── hierarchyThreshold7.properties ├── hierarchyThreshold8.properties ├── pattern │ ├── enhancedPatternLayout.mdc.1.properties │ ├── enhancedPatternLayout1.properties │ ├── enhancedPatternLayout10.properties │ ├── enhancedPatternLayout11.properties │ ├── enhancedPatternLayout12.properties │ ├── enhancedPatternLayout13.properties │ ├── enhancedPatternLayout14.properties │ ├── enhancedPatternLayout15.properties │ ├── enhancedPatternLayout16.properties │ ├── enhancedPatternLayout2.properties │ ├── enhancedPatternLayout3.properties │ ├── enhancedPatternLayout4.properties │ ├── enhancedPatternLayout5.properties │ ├── enhancedPatternLayout6.properties │ ├── enhancedPatternLayout7.properties │ ├── enhancedPatternLayout8.properties │ └── enhancedPatternLayout9.properties ├── patternLayout.mdc.1.properties ├── patternLayout1.properties ├── patternLayout10.properties ├── patternLayout11.properties ├── patternLayout12.properties ├── patternLayout13.properties ├── patternLayout14.properties ├── patternLayout2.properties ├── patternLayout3.properties ├── patternLayout4.properties ├── patternLayout5.properties ├── patternLayout6.properties ├── patternLayout7.properties ├── patternLayout8.properties ├── patternLayout9.properties ├── socketServer1.properties ├── socketServer2.properties ├── socketServer3.properties ├── socketServer4.properties ├── socketServer5.properties ├── socketServer6.properties ├── socketServer7.properties ├── socketServer8.properties └── xml │ ├── DOMTest4.xml │ ├── DOMTest4_A1.xml │ ├── DOMTest4_A2.xml │ ├── DOMTestCase1.xml │ ├── SocketAppenderTestConfig.xml │ ├── categoryfactory1.xml │ ├── categoryfactory2.xml │ ├── customLevel1.xml │ ├── customLevel2.xml │ ├── customLevel3.xml │ ├── customLevel4.xml │ ├── customLogger1.xml │ ├── customLogger2.xml │ ├── customLogger3.xml │ ├── defaultInit.xml │ ├── fallback1.xml │ ├── loggerfactory1.xml │ ├── smtpAppender1.xml │ ├── testReset.xml │ └── throwableRenderer1.xml ├── log4j-coding-convention.xml ├── resources ├── L7D_en_US.properties ├── L7D_fr.properties ├── L7D_fr_CH.properties ├── TestLogSFPatterns.properties └── org │ └── apache │ └── log4j │ ├── TestLogMFPatterns.properties │ ├── TestLogSFPatterns.properties │ └── rewrite │ ├── map.log │ ├── map.xml │ ├── property.log │ ├── property.xml │ ├── reflection.log │ └── reflection.xml ├── run-tests.bat ├── src └── java │ └── org │ └── apache │ └── log4j │ ├── AsyncAppenderTestCase.java │ ├── CategoryTest.java │ ├── CoreTestSuite.java │ ├── DRFATestCase.java │ ├── DefaultThrowableRendererTest.java │ ├── EnhancedMyPatternLayout.java │ ├── EnhancedPatternLayoutTest.java │ ├── EnhancedPatternLayoutTestCase.java │ ├── EnhancedThrowableRendererTest.java │ ├── FileAppenderTest.java │ ├── HTMLLayoutTest.java │ ├── HierarchyThresholdTestCase.java │ ├── Last.java │ ├── LayoutTest.java │ ├── LevelTest.java │ ├── LogCapture.java │ ├── LogManagerTest.java │ ├── LoggerTestCase.java │ ├── MDCOrderFilter.java │ ├── MDCTestCase.java │ ├── MinimumTestCase.java │ ├── MyPatternLayout.java │ ├── MyPatternParser.java │ ├── PatternLayoutTest.java │ ├── PatternLayoutTestCase.java │ ├── PriorityTest.java │ ├── PropertyConfiguratorTest.java │ ├── RFATestCase.java │ ├── StressCategory.java │ ├── TTCCLayoutTest.java │ ├── TestLogMF.java │ ├── TestLogSF.java │ ├── TestLogXF.java │ ├── VectorAppender.java │ ├── VectorErrorHandler.java │ ├── customLogger │ ├── XLogger.java │ └── XLoggerTestCase.java │ ├── defaultInit │ ├── TestCase1.java │ ├── TestCase2.java │ ├── TestCase3.java │ └── TestCase4.java │ ├── helpers │ ├── BoundedFIFOTestCase.java │ ├── CyclicBufferTestCase.java │ ├── DateLayoutTest.java │ ├── LogLogTest.java │ ├── OptionConverterTestCase.java │ ├── PatternParserTestCase.java │ └── UtilLoggingLevelTest.java │ ├── net │ ├── SMTPAppenderTest.java │ ├── ShortSocketServer.java │ ├── SocketAppenderTest.java │ ├── SocketServerTestCase.java │ ├── SyslogAppenderTest.java │ └── TelnetAppenderTest.java │ ├── nt │ └── NTEventLogAppenderTest.java │ ├── or │ └── ORTestCase.java │ ├── pattern │ ├── CachedDateFormatTest.java │ ├── FormattingInfoTest.java │ ├── NameAbbreviatorTest.java │ ├── Num343PatternConverter.java │ └── PatternParserTest.java │ ├── rewrite │ └── RewriteAppenderTest.java │ ├── spi │ ├── LocationInfoTest.java │ ├── LoggingEventTest.java │ └── ThrowableInformationTest.java │ ├── stressCategory │ ├── stressCategory.pl │ ├── util │ ├── AbsoluteDateAndTimeFilter.java │ ├── AbsoluteTimeFilter.java │ ├── Compare.java │ ├── ControlFilter.java │ ├── EnhancedJunitTestRunnerFilter.java │ ├── EnhancedLineNumberFilter.java │ ├── Filter.java │ ├── ISO8601Filter.java │ ├── JunitTestRunnerFilter.java │ ├── LineNumberFilter.java │ ├── RelativeTimeFilter.java │ ├── SerializationTestHelper.java │ ├── SunReflectFilter.java │ ├── Transformer.java │ ├── UnexpectedFormatException.java │ ├── XMLLineAttributeFilter.java │ └── XMLTimestampFilter.java │ ├── varia │ ├── ERFATestCase.java │ ├── ErrorHandlerTestCase.java │ └── LevelMatchFilterTestCase.java │ └── xml │ ├── CustomLevelTestCase.java │ ├── DOMTestCase.java │ ├── XLevel.java │ ├── XMLLayoutTest.java │ └── XMLLayoutTestCase.java ├── sun_checks.xml └── witness ├── LevelMatchFilter_accept ├── LevelMatchFilter_deny ├── PatternParser_mdc ├── customLevel.1 ├── customLevel.2 ├── customLevel.3 ├── customLevel.4 ├── customLogger.1 ├── customLogger.2 ├── dom.A1.1 ├── dom.A1.4 ├── dom.A2.1 ├── dom.A2.4 ├── drfa_blockedRollover.log ├── fallback1 ├── hierarchyThreshold.1 ├── hierarchyThreshold.2 ├── hierarchyThreshold.3 ├── hierarchyThreshold.4 ├── hierarchyThreshold.5 ├── hierarchyThreshold.6 ├── hierarchyThreshold.7 ├── hierarchyThreshold.8 ├── pattern ├── enhancedPatternLayout.1 ├── enhancedPatternLayout.10 ├── enhancedPatternLayout.11 ├── enhancedPatternLayout.12 ├── enhancedPatternLayout.13 ├── enhancedPatternLayout.14 ├── enhancedPatternLayout.15 ├── enhancedPatternLayout.2 ├── enhancedPatternLayout.3 ├── enhancedPatternLayout.4 ├── enhancedPatternLayout.5 ├── enhancedPatternLayout.6 ├── enhancedPatternLayout.7 ├── enhancedPatternLayout.8 ├── enhancedPatternLayout.9 ├── enhancedPatternLayout.mdc.1 ├── enhancedPatternLayout.mdc.2 └── enhancedPatternLayout.throwable ├── patternLayout.1 ├── patternLayout.10 ├── patternLayout.11 ├── patternLayout.12 ├── patternLayout.13 ├── patternLayout.14 ├── patternLayout.2 ├── patternLayout.3 ├── patternLayout.4 ├── patternLayout.5 ├── patternLayout.6 ├── patternLayout.7 ├── patternLayout.8 ├── patternLayout.9 ├── patternLayout.mdc.1 ├── patternLayout.mdc.clear ├── prudent ├── serialization ├── exception.bin ├── info.bin ├── location.bin ├── mdc.bin ├── ndc.bin └── simple.bin ├── simple ├── socketServer.1 ├── socketServer.2 ├── socketServer.3 ├── socketServer.4 ├── socketServer.5 ├── socketServer.6 ├── socketServer.7 ├── socketServer.8 ├── ttcc ├── xmlLayout.1 ├── xmlLayout.2 ├── xmlLayout.3 ├── xmlLayout.mdc.1 ├── xmlLayout.mdc.2 └── xmlLayout.null /NOTICE: -------------------------------------------------------------------------------- 1 | Apache log4j 2 | Copyright 2010 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | -------------------------------------------------------------------------------- /NTEventLogAppender.amd64.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/logging-log4j1/b7e9154128cd4ae1244c877a6fda8f834a0f2247/NTEventLogAppender.amd64.dll -------------------------------------------------------------------------------- /contribs/EirikLygre/mail-2001-01-18: -------------------------------------------------------------------------------- 1 | Licensed to the Apache Software Foundation (ASF) under one or more 2 | contributor license agreements. See the NOTICE file distributed with 3 | this work for additional information regarding copyright ownership. 4 | The ASF licenses this file to You under the Apache License, Version 2.0 5 | (the "License"); you may not use this file except in compliance with 6 | the License. You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | 16 | 17 | 18 | Delivered-To: urba-cgu@urbanet.ch 19 | To: Ceki Gulcu 20 | From: Eirik_Lygre/evita/no%EVITA@evita.no 21 | Subject: Re: Suggestion for new appender "DailyFileAppender" 22 | Date: Thu, 18 Jan 2001 20:18:27 +0100 23 | X-MIMETrack: Serialize by Router on domino1/evita/no(Release 5.0.5 |September 22, 2000) at 24 | 18.01.2001 20:18:30 25 | 26 | 27 | 28 | This version subclasses GregorianCalendar, to get access to the 29 | millis-variable used in the Calendar-classes (it is protected). 30 | 31 | 32 | What do you think? 33 | 34 | 35 | Eirik 36 | 37 | 38 | ++++++++++ 39 | Eirik Lygre 40 | eirik.lygre@evita.no 41 | e-vita as, Stortorvet 3, Oslo 42 | Mobil: (+47) 905 66476 43 | Fax: (+47) 23 35 70 51 44 | DailyFileAppender1.jav -------------------------------------------------------------------------------- /contribs/Jamie Tsao/mail-2001-06-20: -------------------------------------------------------------------------------- 1 | Licensed to the Apache Software Foundation (ASF) under one or more 2 | contributor license agreements. See the NOTICE file distributed with 3 | this work for additional information regarding copyright ownership. 4 | The ASF licenses this file to You under the Apache License, Version 2.0 5 | (the "License"); you may not use this file except in compliance with 6 | the License. You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | 16 | 17 | 18 | Hi, 19 | 20 | I have written a JMSQueueAppender that essentially logs to a JMS Queue 21 | (Point 2 Point). The JMSAppender currently packaged with log4j logs to 22 | a JMS Topic (I would rename it JMSTopicAppender). I also made it so 23 | that the InitialContextFactory and ProviderUrl are configurable appender 24 | options. I would like to submit this to Apache. 25 | 26 | Thanks, 27 | 28 | Jamie Tsao -------------------------------------------------------------------------------- /contribs/JimMoore/mail-2001-03-12T1454: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/logging-log4j1/b7e9154128cd4ae1244c877a6fda8f834a0f2247/contribs/JimMoore/mail-2001-03-12T1454 -------------------------------------------------------------------------------- /contribs/JimMoore/mail-2001-03-13T0646: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/logging-log4j1/b7e9154128cd4ae1244c877a6fda8f834a0f2247/contribs/JimMoore/mail-2001-03-13T0646 -------------------------------------------------------------------------------- /contribs/ThomasFenner/JDBCConnectionHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package com.klopotek.utils.log; 19 | 20 | import java.sql.*; 21 | 22 | 23 | /** 24 | This interface has to be implemented for your own database-connection-handling and its used in class JDBCLogger. 25 | 26 |

Author : Thomas Fenner

27 | 28 | @since 1.0 29 | */ 30 | public interface JDBCConnectionHandler 31 | { 32 | /**Get a connection*/ 33 | Connection getConnection(); 34 | /**Get a defined connection*/ 35 | Connection getConnection(String _url, String _username, String _password); 36 | } 37 | 38 | 39 | -------------------------------------------------------------------------------- /contribs/ThomasFenner/JDBCIDHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package com.klopotek.utils.log; 19 | 20 | 21 | /** 22 | This interface has to be implemented to provide ID-columns with unique IDs and its used in class JDBCLogger. 23 | 24 |

Author : Thomas Fenner

25 | 26 | @since 1.0 27 | */ 28 | public interface JDBCIDHandler 29 | { 30 | /**Get a unique ID*/ 31 | Object getID(); 32 | } 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /examples/NumberCruncher.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package examples; 19 | 20 | import java.rmi.Remote; 21 | import java.rmi.RemoteException; 22 | 23 | /** 24 | NumberCruncher's factor positive integers. See source code for more details. 26 | 27 | @author Ceki Gülcü 28 | 29 | */ 30 | public interface NumberCruncher extends Remote { 31 | 32 | /** 33 | Factor a positive integer number and return its 34 | distinct factor's as an integer array. 35 | */ 36 | int[] factor(int number) throws RemoteException; 37 | } 38 | -------------------------------------------------------------------------------- /examples/lf5/InitUsingLog4JProperties/log4j.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | 17 | # For the general syntax of property based configuration files see the 18 | # documenation of org.apache.log4j.PropertyConfigurator. 19 | 20 | # The root category uses the appender called A1. Since no priority is 21 | # specified, the root category assumes the default priority for root 22 | # which is DEBUG in log4j. The root category is the only category that 23 | # has a default priority. All other categories need not be assigned a 24 | # priority in which case they inherit their priority from the 25 | # hierarchy. 26 | 27 | log4j.rootCategory=, A1 28 | 29 | # A1 is set to be a LF5Appender which outputs to a swing 30 | # logging console. 31 | 32 | log4j.appender.A1=org.apache.log4j.lf5.LF5Appender 33 | log4j.appender.A1.MaxNumberOfRecords=1000 34 | -------------------------------------------------------------------------------- /examples/lf5/InitUsingPropertiesFile/example.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | 17 | # For the general syntax of property based configuration files see the 18 | # documenation of org.apache.log4j.PropertyConfigurator. 19 | 20 | # The root category uses the appender called A1. Since no priority is 21 | # specified, the root category assumes the default priority for root 22 | # which is DEBUG in log4j. The root category is the only category that 23 | # has a default priority. All other categories need not be assigned a 24 | # priority in which case they inherit their priority from the 25 | # hierarchy. 26 | 27 | log4j.rootCategory=, A1 28 | 29 | # A1 is set to be a LF5Appender which outputs to a swing 30 | # logging console. 31 | 32 | log4j.appender.A1=org.apache.log4j.lf5.LF5Appender 33 | log4j.appender.A1.MaxNumberOfRecords=700 34 | -------------------------------------------------------------------------------- /examples/lf5/InitUsingXMLPropertiesFile/example.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /examples/lf5/UsingSocketAppenders/socketclient.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | # For the general syntax of property based configuration files see the 17 | # documenation of org.apache.log4j.PropertyConfigurator. 18 | 19 | # The root category uses the appender called A1. Since no priority is 20 | # specified, the root category assumes the default priority for root 21 | # which is DEBUG in log4j. The root category is the only category that 22 | # has a default priority. All other categories need not be assigned a 23 | # priority in which case they inherit their priority from the 24 | # hierarchy. 25 | 26 | log4j.rootCategory=, A1 27 | 28 | # A1 is set to be a LF5Appender which outputs to a swing 29 | # logging console. 30 | 31 | log4j.appender.A1=org.apache.log4j.net.SocketAppender 32 | log4j.appender.A1.RemoteHost=localhost 33 | log4j.appender.A1.Port=8887 34 | -------------------------------------------------------------------------------- /examples/lf5/index.html: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 23 | 24 |

See Examples 25 | section in the LogFactor5 user guide. 26 |

27 | 28 | 29 | -------------------------------------------------------------------------------- /examples/mycat.bad: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | # The usual stuff. Note that A1 is configured in root not in "some.cat" 17 | log4j.rootLogger=DEBUG, A1 18 | log4j.appender.A1=org.apache.log4j.ConsoleAppender 19 | 20 | log4j.appender.A1.layout=org.apache.log4j.PatternLayout 21 | log4j.appender.A1.layout.ConversionPattern=%5p [%t] %c - %m%n 22 | 23 | # Set the priority of "some.cat" to TRACE (defined in 24 | # examples.customLevel.XLevel). This will actually have the side 25 | # effect of instanciating a logger object having the name "some.cat" 26 | # this will cause a ClassCastException if the logger object is cast 27 | # as a MyLogger object. 28 | 29 | log4j.logger.some.cat=TRACE#examples.customLevel.XLevel 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /examples/subclass/MyLoggerFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package examples.subclass; 19 | 20 | import org.apache.log4j.Logger; 21 | import org.apache.log4j.spi.LoggerFactory; 22 | 23 | /** 24 | A factory that makes new {@link MyLogger} objects. 25 | 26 | See source 27 | code for more details. 28 | 29 | @author Ceki Gülcü */ 30 | public class MyLoggerFactory implements LoggerFactory { 31 | 32 | /** 33 | The constructor should be public as it will be called by 34 | configurators in different packages. */ 35 | public 36 | MyLoggerFactory() { 37 | } 38 | 39 | public 40 | Logger makeNewLoggerInstance(String name) { 41 | return new MyLogger(name); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/DefaultCategoryFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.log4j; 19 | 20 | import org.apache.log4j.spi.LoggerFactory; 21 | 22 | class DefaultCategoryFactory implements LoggerFactory { 23 | 24 | DefaultCategoryFactory() { 25 | } 26 | 27 | public 28 | Logger makeNewLoggerInstance(String name) { 29 | return new Logger(name); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/ProvisionNode.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.log4j; 19 | 20 | import java.util.Vector; 21 | 22 | class ProvisionNode extends Vector { 23 | private static final long serialVersionUID = -4479121426311014469L; 24 | 25 | ProvisionNode(Logger logger) { 26 | super(); 27 | this.addElement(logger); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/chainsaw/doc-files/screen_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/logging-log4j1/b7e9154128cd4ae1244c877a6fda8f834a0f2247/src/main/java/org/apache/log4j/chainsaw/doc-files/screen_01.png -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/config/package.html: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | Package used in getting/setting component properties. 22 | 23 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/helpers/FormattingInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.log4j.helpers; 19 | 20 | 21 | /** 22 | FormattingInfo instances contain the information obtained when parsing 23 | formatting modifiers in conversion modifiers. 24 | 25 | @author Jim Cakalic 26 | @author Ceki Gülcü 27 | 28 | @since 0.8.2 29 | */ 30 | public class FormattingInfo { 31 | int min = -1; 32 | int max = 0x7FFFFFFF; 33 | boolean leftAlign = false; 34 | 35 | void reset() { 36 | min = -1; 37 | max = 0x7FFFFFFF; 38 | leftAlign = false; 39 | } 40 | 41 | void dump() { 42 | LogLog.debug("min="+min+", max="+max+", leftAlign="+leftAlign); 43 | } 44 | } 45 | 46 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/helpers/NullEnumeration.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.log4j.helpers; 19 | 20 | import java.util.Enumeration; 21 | import java.util.NoSuchElementException; 22 | 23 | /** 24 | 25 | An always-empty Enumerator. 26 | 27 | @author Anders Kristensen 28 | @since version 1.0 29 | */ 30 | public class NullEnumeration implements Enumeration { 31 | private static final NullEnumeration instance = new NullEnumeration(); 32 | 33 | private 34 | NullEnumeration() { 35 | } 36 | 37 | public static NullEnumeration getInstance() { 38 | return instance; 39 | } 40 | 41 | public 42 | boolean hasMoreElements() { 43 | return false; 44 | } 45 | 46 | public 47 | Object nextElement() { 48 | throw new NoSuchElementException(); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/helpers/ThreadLocalMap.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.log4j.helpers; 19 | 20 | import java.util.Hashtable; 21 | 22 | /** 23 | ThreadLocalMap extends {@link InheritableThreadLocal} 24 | to bequeath a copy of the hashtable of the MDC of the parent 25 | thread. 26 | 27 | @author Ceki Gülcü 28 | @since 1.2 29 | */ 30 | final public class ThreadLocalMap extends InheritableThreadLocal { 31 | 32 | public 33 | final 34 | Object childValue(Object parentValue) { 35 | Hashtable ht = (Hashtable) parentValue; 36 | if(ht != null) { 37 | return ht.clone(); 38 | } else { 39 | return null; 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/helpers/package.html: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |

This package is used internally. 26 | 27 | 28 |


29 |
30 | 31 | Last modified: Sat Jul 3 15:12:58 MDT 1999 32 | 33 | 34 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/jdbc/package.html: -------------------------------------------------------------------------------- 1 | 18 | 19 | 20 | 21 | The JDBCAppender provides for sending log events to a database. 22 | 23 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/jmx/MethodUnion.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.log4j.jmx; 19 | 20 | import java.lang.reflect.Method; 21 | 22 | class MethodUnion { 23 | 24 | Method readMethod; 25 | Method writeMethod; 26 | 27 | MethodUnion( Method readMethod, Method writeMethod) { 28 | this.readMethod = readMethod; 29 | this.writeMethod = writeMethod; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/jmx/package.html: -------------------------------------------------------------------------------- 1 | 18 | 19 | 20 | 21 | This package lets you manage log4j settings using JMX. It is 22 | unfortunately not of production quality. 23 | 24 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/net/package.html: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 23 |

Package for remote logging. 24 | 25 |


26 |
27 | 28 | Last modified: Tue Mar 21 20:28:14 MET 2000 29 | 30 | 31 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/nt/package.html: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |

Package for NT event logging. 26 | 27 |


28 |
29 | 30 | Last modified: Sat Apr 29 14:30:12 MDT 2000 31 | 32 | 33 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/or/DefaultRenderer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.log4j.or; 19 | 20 | /** 21 | The default Renderer renders objects by calling their 22 | toString method. 23 | 24 | @author Ceki Gülcü 25 | @since 1.0 */ 26 | class DefaultRenderer implements ObjectRenderer { 27 | 28 | DefaultRenderer() { 29 | } 30 | 31 | /** 32 | Render the object passed as parameter by calling its 33 | toString method. */ 34 | public 35 | String doRender(final Object o) { 36 | try { 37 | return o.toString(); 38 | } catch(Exception ex) { 39 | return ex.toString(); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/or/ObjectRenderer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.log4j.or; 19 | 20 | /** 21 | Implement this interface in order to render objects as strings. 22 | 23 | @author Ceki Gülcü 24 | @since 1.0 */ 25 | public interface ObjectRenderer { 26 | 27 | /** 28 | Render the object passed as parameter as a String. 29 | */ 30 | public 31 | String doRender(Object o); 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/or/jms/package.html: -------------------------------------------------------------------------------- 1 | 18 | 19 | 20 | 21 | This package contains the MessageRenderer which renders objects of 22 | type javax.jms.Message. 23 | 24 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/or/package.html: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | org.apache.log4j.or package 22 | 23 | 24 | 25 | 26 |

ObjectRenders are resposible for rendering messages depending on 27 | their class type. 28 | 29 |


30 | 31 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/or/sax/package.html: -------------------------------------------------------------------------------- 1 | 18 | 19 | 20 | 21 | This package contains the AttributesRenderer which renders object of 22 | class org.xml.sax.Attributes. 23 | 24 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/package.html: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |

The main log4j package. 26 | 27 |


28 | 29 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/pattern/package.html: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |

Provides classes implementing format specifiers in conversion patterns.

26 | 27 |
28 | 29 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/rewrite/RewritePolicy.java: -------------------------------------------------------------------------------- 1 | package org.apache.log4j.rewrite; 2 | 3 | import org.apache.log4j.spi.LoggingEvent; 4 | 5 | /* 6 | * Licensed to the Apache Software Foundation (ASF) under one or more 7 | * contributor license agreements. See the NOTICE file distributed with 8 | * this work for additional information regarding copyright ownership. 9 | * The ASF licenses this file to You under the Apache License, Version 2.0 10 | * (the "License"); you may not use this file except in compliance with 11 | * the License. You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | */ 21 | 22 | /** 23 | * This interface is implemented to provide a rewrite 24 | * strategy for RewriteAppender. RewriteAppender will 25 | * call the rewrite method with a source logging event. 26 | * The strategy may return that event, create a new event 27 | * or return null to suppress the logging request. 28 | */ 29 | public interface RewritePolicy { 30 | /** 31 | * Rewrite a logging event. 32 | * @param source a logging event that may be returned or 33 | * used to create a new logging event. 34 | * @return a logging event or null to suppress processing. 35 | */ 36 | LoggingEvent rewrite(final LoggingEvent source); 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/spi/DefaultRepositorySelector.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | 19 | 20 | package org.apache.log4j.spi; 21 | 22 | 23 | public class DefaultRepositorySelector implements RepositorySelector { 24 | 25 | final LoggerRepository repository; 26 | 27 | public 28 | DefaultRepositorySelector(LoggerRepository repository) { 29 | this.repository = repository; 30 | } 31 | 32 | public 33 | LoggerRepository getLoggerRepository() { 34 | return repository; 35 | } 36 | } 37 | 38 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/spi/ErrorCode.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.log4j.spi; 19 | 20 | 21 | /** 22 | This interface defines commonly encoutered error codes. 23 | 24 | @author Ceki Gülcü 25 | @since 0.9.0 26 | */ 27 | public interface ErrorCode { 28 | 29 | public final int GENERIC_FAILURE = 0; 30 | public final int WRITE_FAILURE = 1; 31 | public final int FLUSH_FAILURE = 2; 32 | public final int CLOSE_FAILURE = 3; 33 | public final int FILE_OPEN_FAILURE = 4; 34 | public final int MISSING_LAYOUT = 5; 35 | public final int ADDRESS_PARSE_FAILURE = 6; 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/spi/HierarchyEventListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.log4j.spi; 19 | 20 | import org.apache.log4j.Appender; 21 | import org.apache.log4j.Category; 22 | 23 | /** 24 | Listen to events occuring within a {@link 25 | org.apache.log4j.Hierarchy Hierarchy}. 26 | 27 | @author Ceki Gülcü 28 | @since 1.2 29 | 30 | */ 31 | public interface HierarchyEventListener { 32 | 33 | 34 | //public 35 | //void categoryCreationEvent(Category cat); 36 | 37 | 38 | public 39 | void addAppenderEvent(Category cat, Appender appender); 40 | 41 | public 42 | void removeAppenderEvent(Category cat, Appender appender); 43 | 44 | 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/spi/LoggerFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.log4j.spi; 19 | 20 | import org.apache.log4j.Logger; 21 | 22 | /** 23 | 24 | Implement this interface to create new instances of Logger or 25 | a sub-class of Logger. 26 | 27 |

See examples/subclass/MyLogger.java for an example. 28 | 29 | @author Ceki Gülcü 30 | @since version 0.8.5 31 | 32 | */ 33 | public interface LoggerFactory { 34 | 35 | public 36 | Logger makeNewLoggerInstance(String name); 37 | 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/spi/NullWriter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.log4j.spi; 18 | import java.io.Writer; 19 | 20 | /** 21 | * NullWriter is an obsolete class provided only for 22 | * binary compatibility with earlier versions of log4j and should not be used. 23 | * 24 | * @deprecated 25 | */ 26 | class NullWriter extends Writer { 27 | 28 | public void close() { 29 | // blank 30 | } 31 | 32 | public void flush() { 33 | // blank 34 | } 35 | 36 | public void write(char[] cbuf, int off, int len) { 37 | // blank 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/spi/RendererSupport.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | 19 | package org.apache.log4j.spi; 20 | 21 | import org.apache.log4j.or.ObjectRenderer; 22 | import org.apache.log4j.or.RendererMap; 23 | 24 | 25 | public interface RendererSupport { 26 | 27 | public 28 | RendererMap getRendererMap(); 29 | 30 | public 31 | void setRenderer(Class renderedClass, ObjectRenderer renderer); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/spi/ThrowableRenderer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.log4j.spi; 18 | 19 | /** 20 | * Implemented by classes that render instances of 21 | * java.lang.Throwable (exceptions and errors) 22 | * into a string representation. 23 | * 24 | * @since 1.2.16 25 | */ 26 | public interface ThrowableRenderer { 27 | /** 28 | * Render Throwable. 29 | * @param t throwable, may not be null. 30 | * @return String representation. 31 | */ 32 | public String[] doRender(Throwable t); 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/spi/ThrowableRendererSupport.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.log4j.spi; 18 | 19 | /** 20 | * Implemented by logger repositories that support configurable 21 | * rendering of Throwables. 22 | * 23 | * @since 1.2.16 24 | */ 25 | public interface ThrowableRendererSupport { 26 | /** 27 | * Get throwable renderer. 28 | * @return throwable renderer, may be null. 29 | */ 30 | ThrowableRenderer getThrowableRenderer(); 31 | 32 | /** 33 | * Set throwable renderer. 34 | * @param renderer renderer, may be null. 35 | */ 36 | void setThrowableRenderer(ThrowableRenderer renderer); 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/spi/TriggeringEventEvaluator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.log4j.spi; 19 | 20 | /** 21 | 22 | Implementions of this interface allow certain appenders to decide 23 | when to perform an appender specific action. 24 | 25 |

For example the {@link org.apache.log4j.net.SMTPAppender} sends 26 | an email when the {@link #isTriggeringEvent} method returns 27 | true and adds the event to an internal buffer when the 28 | returned result is false. 29 | 30 | @author Ceki Gülcü 31 | @since version 1.0 32 | 33 | */ 34 | public interface TriggeringEventEvaluator { 35 | 36 | /** 37 | Is this the triggering event? 38 | */ 39 | public boolean isTriggeringEvent(LoggingEvent event); 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/spi/package.html: -------------------------------------------------------------------------------- 1 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | Contains part of the System Programming Interface (SPI) needed to 25 | extend log4j. 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/varia/ReloadingPropertyConfigurator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.log4j.varia; 19 | 20 | import java.io.InputStream; 21 | import java.net.URL; 22 | 23 | import org.apache.log4j.PropertyConfigurator; 24 | import org.apache.log4j.spi.Configurator; 25 | import org.apache.log4j.spi.LoggerRepository; 26 | 27 | public class ReloadingPropertyConfigurator implements Configurator { 28 | 29 | PropertyConfigurator delegate = new PropertyConfigurator(); 30 | 31 | public ReloadingPropertyConfigurator() { 32 | } 33 | 34 | /** 35 | * @since 1.2.17 36 | */ 37 | public void doConfigure(InputStream inputStream, LoggerRepository repository) { 38 | } 39 | 40 | public void doConfigure(URL url, LoggerRepository repository) { 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/varia/package.html: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 23 |

Contains various appenders, filters and other odds and ends. 24 | 25 |


26 |
27 | 28 | Last modified: Tue Mar 21 20:28:14 MET 2000 29 | 30 | 31 | -------------------------------------------------------------------------------- /src/main/java/org/apache/log4j/xml/package.html: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |

XML based components. 26 | 27 | 28 |


29 |
30 | 31 | Last modified: Mon Mar 27 21:17:13 MDT 2000 32 | 33 | 34 | -------------------------------------------------------------------------------- /src/main/javadoc/org/apache/log4j/xml/examples/doc-files/sample1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 20 | 21 | 22 | 23 | 24 | 25 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /src/main/resources/META-INF/NOTICE: -------------------------------------------------------------------------------- 1 | Apache log4j 2 | Copyright 2007 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). -------------------------------------------------------------------------------- /src/main/resources/org/apache/log4j/lf5/config/defaultconfig.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | # For the general syntax of property based configuration files see the 17 | # documenation of org.apache.log4j.PropertyConfigurator. 18 | 19 | # The root category uses the appender called A1. Since no priority is 20 | # specified, the root category assumes the default priority for root 21 | # which is DEBUG in log4j. The root category is the only category that 22 | # has a default priority. All other categories need not be assigned a 23 | # priority in which case they inherit their priority from the 24 | # hierarchy. 25 | 26 | log4j.rootCategory=, A1 27 | 28 | # A1 is set to be a LogMonitorAppender which outputs to a swing 29 | # logging console. 30 | 31 | log4j.appender.A1=org.apache.log4j.lf5.LF5Appender 32 | -------------------------------------------------------------------------------- /src/main/resources/org/apache/log4j/lf5/viewer/images/channelexplorer_new.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/logging-log4j1/b7e9154128cd4ae1244c877a6fda8f834a0f2247/src/main/resources/org/apache/log4j/lf5/viewer/images/channelexplorer_new.gif -------------------------------------------------------------------------------- /src/main/resources/org/apache/log4j/lf5/viewer/images/channelexplorer_satellite.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/logging-log4j1/b7e9154128cd4ae1244c877a6fda8f834a0f2247/src/main/resources/org/apache/log4j/lf5/viewer/images/channelexplorer_satellite.gif -------------------------------------------------------------------------------- /src/main/resources/org/apache/log4j/lf5/viewer/images/lf5_small_icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/logging-log4j1/b7e9154128cd4ae1244c877a6fda8f834a0f2247/src/main/resources/org/apache/log4j/lf5/viewer/images/lf5_small_icon.gif -------------------------------------------------------------------------------- /src/ntdll/EventLogCategories.mc: -------------------------------------------------------------------------------- 1 | ; 2 | ; Licensed to the Apache Software Foundation (ASF) under one 3 | ; or more contributor license agreements. See the NOTICE file 4 | ; distributed with this work for additional information 5 | ; regarding copyright ownership. The ASF licenses this file 6 | ; to you under the Apache License, Version 2.0 (the 7 | ; "License"); you may not use this file except in compliance 8 | ; with the License. You may obtain a copy of the License at 9 | ; 10 | ; http://www.apache.org/licenses/LICENSE-2.0 11 | ; 12 | ; Unless required by applicable law or agreed to in writing, 13 | ; software distributed under the License is distributed on an 14 | ; "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | ; KIND, either express or implied. See the License for the 16 | ; specific language governing permissions and limitations 17 | ; under the License. 18 | ; 19 | MessageId=1 20 | Language=English 21 | Trace 22 | . 23 | MessageId=2 24 | Language=English 25 | Debug 26 | . 27 | MessageId=3 28 | Language=English 29 | Info 30 | . 31 | MessageId=4 32 | Language=English 33 | Warn 34 | . 35 | MessageId=5 36 | Language=English 37 | Error 38 | . 39 | MessageId=6 40 | Language=English 41 | Fatal 42 | . 43 | MessageId=0x1000 44 | Language=English 45 | %1 46 | . 47 | -------------------------------------------------------------------------------- /src/ntdll/MSG00001.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/logging-log4j1/b7e9154128cd4ae1244c877a6fda8f834a0f2247/src/ntdll/MSG00001.bin -------------------------------------------------------------------------------- /src/ntdll/NTEventLogAppender.def: -------------------------------------------------------------------------------- 1 | ; 2 | ; Licensed to the Apache Software Foundation (ASF) under one or more 3 | ; contributor license agreements. See the NOTICE file distributed with 4 | ; this work for additional information regarding copyright ownership. 5 | ; The ASF licenses this file to You under the Apache License, Version 2.0 6 | ; (the "License"); you may not use this file except in compliance with 7 | ; the License. You may obtain a copy of the License at 8 | ; 9 | ; http://www.apache.org/licenses/LICENSE-2.0 10 | ; 11 | ; Unless required by applicable law or agreed to in writing, software 12 | ; distributed under the License is distributed on an "AS IS" BASIS, 13 | ; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ; See the License for the specific language governing permissions and 15 | ; limitations under the License. 16 | ; 17 | 18 | LIBRARY "NTEventLogAppender" 19 | 20 | EXPORTS 21 | DllRegisterServer PRIVATE 22 | DllUnregisterServer PRIVATE 23 | -------------------------------------------------------------------------------- /src/performance/java/org/apache/log4j/performance/package.html: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |

Package to measure the performance of the different log4j 26 | components. 27 |

28 | 29 |

The 30 | org.apache.log4j.performance package is intended 31 | for internal use only. Consequently, the classes in this 32 | package are not included in the log4j.jar file. 33 |

34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /src/performance/java/org/apache/log4j/performance/xml/logging1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 20 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /src/performance/java/org/apache/log4j/performance/xml/logging100.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /src/performance/java/org/apache/log4j/performance/xml/logging1000.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /src/performance/java/org/apache/log4j/performance/xml/logging102.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /src/performance/java/org/apache/log4j/performance/xml/logging200.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /src/performance/java/org/apache/log4j/performance/xml/logging202.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /src/performance/java/org/apache/log4j/performance/xml/logging220.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /src/performance/java/org/apache/log4j/performance/xml/logging4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /src/site/apt/roadmap.apt: -------------------------------------------------------------------------------- 1 | ~~ Licensed to the Apache Software Foundation (ASF) under one or more 2 | ~~ contributor license agreements. See the NOTICE file distributed with 3 | ~~ this work for additional information regarding copyright ownership. 4 | ~~ The ASF licenses this file to You under the Apache License, Version 2.0 5 | ~~ (the "License"); you may not use this file except in compliance with 6 | ~~ the License. You may obtain a copy of the License at 7 | ~~ 8 | ~~ http://www.apache.org/licenses/LICENSE-2.0 9 | ~~ 10 | ~~ Unless required by applicable law or agreed to in writing, software 11 | ~~ distributed under the License is distributed on an "AS IS" BASIS, 12 | ~~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ~~ See the License for the specific language governing permissions and 14 | ~~ limitations under the License. 15 | 16 | Apache log4j 1.2 Roadmap 17 | 18 | Apache log4j 1.2 is mature and widely deployed. Significant 19 | changes are unlikely. Bug fixes and maintenance releases are anticipated. 20 | 21 | The next major version with is {{{http://logging.apache.org/log4j/2.0/index.html}Apache log4j 2}} 22 | 23 | -------------------------------------------------------------------------------- /src/site/resources/css/site.css: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one or more 3 | contributor license agreements. See the NOTICE file distributed with 4 | this work for additional information regarding copyright ownership. 5 | The ASF licenses this file to You under the Apache License, Version 2.0 6 | (the "License"); you may not use this file except in compliance with 7 | the License. You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | See the License for the specific language governing permissions and 15 | limitations under the License. 16 | 17 | */ 18 | -------------------------------------------------------------------------------- /src/site/resources/images/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/logging-log4j1/b7e9154128cd4ae1244c877a6fda8f834a0f2247/src/site/resources/images/logo.jpg -------------------------------------------------------------------------------- /src/site/resources/images/ls-logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/logging-log4j1/b7e9154128cd4ae1244c877a6fda8f834a0f2247/src/site/resources/images/ls-logo.jpg -------------------------------------------------------------------------------- /src/site/resources/images/maven-feather.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/logging-log4j1/b7e9154128cd4ae1244c877a6fda8f834a0f2247/src/site/resources/images/maven-feather.png -------------------------------------------------------------------------------- /src/site/resources/images/od.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/logging-log4j1/b7e9154128cd4ae1244c877a6fda8f834a0f2247/src/site/resources/images/od.gif -------------------------------------------------------------------------------- /tests/input/RFA1.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | log4j.rootLogger=DEBUG, testAppender 16 | log4j.appender.testAppender=org.apache.log4j.RollingFileAppender 17 | log4j.appender.testAppender.file=output/RFA-test1.log 18 | log4j.appender.testAppender.Append=false 19 | log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout 20 | log4j.appender.testAppender.layout.ConversionPattern=%m\n 21 | log4j.appender.testAppender.maxFileSize=100 22 | 23 | # Prevent internal log4j DEBUG messages from polluting the output. 24 | log4j.logger.org.apache.log4j.PropertyConfigurator=INFO 25 | log4j.logger.org.apache.log4j.config.PropertySetter=INFO 26 | log4j.logger.org.apache.log4j.FileAppender=INFO 27 | -------------------------------------------------------------------------------- /tests/input/defaultInit3.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | log4j.rootCategory=DEBUG, D3 17 | log4j.appender.D3=org.apache.log4j.FileAppender 18 | log4j.appender.D3.File=output/temp 19 | log4j.appender.D3.Append=false 20 | log4j.appender.D3.layout=org.apache.log4j.PatternLayout 21 | log4j.appender.D3.layout.ConversionPattern=%d [%t] %-5p %.16c - %m%n -------------------------------------------------------------------------------- /tests/input/hierarchyThreshold1.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | log4j.threshold=OFF 17 | log4j.rootLogger=,A 18 | log4j.appender.A=org.apache.log4j.FileAppender 19 | log4j.appender.A.File=output/temp 20 | log4j.appender.A.Append=false 21 | log4j.appender.A.layout=org.apache.log4j.PatternLayout 22 | log4j.appender.A.layout.ConversionPattern=%p [%t] %c{2} = %m%n -------------------------------------------------------------------------------- /tests/input/hierarchyThreshold2.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | log4j.threshold=FATAL 17 | log4j.rootLogger=,A 18 | log4j.appender.A=org.apache.log4j.FileAppender 19 | log4j.appender.A.File=output/temp 20 | log4j.appender.A.Append=false 21 | log4j.appender.A.layout=org.apache.log4j.PatternLayout 22 | log4j.appender.A.layout.ConversionPattern=%p [%t] %c{2} = %m%n -------------------------------------------------------------------------------- /tests/input/hierarchyThreshold3.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | log4j.threshold=ERROR 17 | log4j.rootLogger=,A 18 | log4j.appender.A=org.apache.log4j.FileAppender 19 | log4j.appender.A.File=output/temp 20 | log4j.appender.A.Append=false 21 | log4j.appender.A.layout=org.apache.log4j.PatternLayout 22 | log4j.appender.A.layout.ConversionPattern=%p [%t] %c{2} = %m%n -------------------------------------------------------------------------------- /tests/input/hierarchyThreshold4.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | log4j.threshold=WARN 17 | log4j.rootLogger=,A 18 | log4j.appender.A=org.apache.log4j.FileAppender 19 | log4j.appender.A.File=output/temp 20 | log4j.appender.A.Append=false 21 | log4j.appender.A.layout=org.apache.log4j.PatternLayout 22 | log4j.appender.A.layout.ConversionPattern=%p [%t] %c{2} = %m%n -------------------------------------------------------------------------------- /tests/input/hierarchyThreshold5.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | log4j.threshold=INFO 17 | log4j.rootLogger=,A 18 | log4j.appender.A=org.apache.log4j.FileAppender 19 | log4j.appender.A.File=output/temp 20 | log4j.appender.A.Append=false 21 | log4j.appender.A.layout=org.apache.log4j.PatternLayout 22 | log4j.appender.A.layout.ConversionPattern=%p [%t] %c{2} = %m%n -------------------------------------------------------------------------------- /tests/input/hierarchyThreshold6.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | log4j.threshold=DEBUG 17 | log4j.rootLogger=,A 18 | log4j.appender.A=org.apache.log4j.FileAppender 19 | log4j.appender.A.File=output/temp 20 | log4j.appender.A.Append=false 21 | log4j.appender.A.layout=org.apache.log4j.PatternLayout 22 | log4j.appender.A.layout.ConversionPattern=%p [%t] %c{2} = %m%n -------------------------------------------------------------------------------- /tests/input/hierarchyThreshold7.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | log4j.threshold=TRACE#org.apache.log4j.xml.XLevel 17 | log4j.rootLogger=ALL,A 18 | log4j.appender.A=org.apache.log4j.FileAppender 19 | log4j.appender.A.File=output/temp 20 | log4j.appender.A.Append=false 21 | log4j.appender.A.layout=org.apache.log4j.PatternLayout 22 | log4j.appender.A.layout.ConversionPattern=%p [%t] %c{2} = %m%n 23 | -------------------------------------------------------------------------------- /tests/input/hierarchyThreshold8.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | log4j.threshold=ALL 17 | log4j.rootLogger=ALL,A 18 | log4j.appender.A=org.apache.log4j.FileAppender 19 | log4j.appender.A.File=output/temp 20 | log4j.appender.A.Append=false 21 | log4j.appender.A.layout=org.apache.log4j.PatternLayout 22 | log4j.appender.A.layout.ConversionPattern=%p [%t] %c{2} = %m%n -------------------------------------------------------------------------------- /tests/input/pattern/enhancedPatternLayout.mdc.1.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | log4j.rootCategory=DEBUG, testAppender 16 | log4j.appender.testAppender=org.apache.log4j.FileAppender 17 | log4j.appender.testAppender.File=output/temp 18 | log4j.appender.testAppender.Append=false 19 | log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout 20 | log4j.appender.testAppender.layout.ConversionPattern=%-5p - %m %X%n 21 | 22 | # Prevent internal log4j DEBUG messages from polluting the output. 23 | log4j.logger.org.apache.log4j.PropertyConfigurator=INFO 24 | log4j.logger.org.apache.log4j.config.PropertySetter=INFO 25 | log4j.logger.org.apache.log4j.FileAppender=INFO 26 | -------------------------------------------------------------------------------- /tests/input/pattern/enhancedPatternLayout1.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | log4j.rootLogger=DEBUG, testAppender 16 | log4j.appender.testAppender=org.apache.log4j.FileAppender 17 | log4j.appender.testAppender.file=output/temp 18 | log4j.appender.testAppender.Append=false 19 | log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout 20 | log4j.appender.testAppender.layout.ConversionPattern=%-5p - %m%n 21 | 22 | # Prevent internal log4j DEBUG messages from polluting the output. 23 | log4j.logger.org.apache.log4j.PropertyConfigurator=INFO 24 | log4j.logger.org.apache.log4j.config.PropertySetter=INFO 25 | log4j.logger.org.apache.log4j.FileAppender=INFO 26 | -------------------------------------------------------------------------------- /tests/input/pattern/enhancedPatternLayout10.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | log4j.rootCategory=DEBUG, testAppender 16 | log4j.appender.testAppender=org.apache.log4j.FileAppender 17 | log4j.appender.testAppender.File=output/temp 18 | log4j.appender.testAppender.Append= false 19 | log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout 20 | log4j.appender.testAppender.layout.ConversionPattern=[%t] %-5p %l: %m%n 21 | 22 | # Prevent internal log4j DEBUG messages from polluting the output. 23 | log4j.logger.org.apache.log4j.PropertyConfigurator=INFO 24 | log4j.logger.org.apache.log4j.config.PropertySetter=INFO 25 | log4j.logger.org.apache.log4j.FileAppender=INFO 26 | -------------------------------------------------------------------------------- /tests/input/pattern/enhancedPatternLayout11.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | log4j.rootCategory=DEBUG, testAppender 16 | log4j.appender.testAppender=org.apache.log4j.FileAppender 17 | log4j.appender.testAppender.File=output/temp 18 | log4j.appender.testAppender.Append=false 19 | log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout 20 | log4j.appender.testAppender.layout.ConversionPattern=%-5p [%t] %c{2}: %m%n 21 | 22 | # Prevent internal log4j DEBUG messages from polluting the output. 23 | log4j.logger.org.apache.log4j.PropertyConfigurator=INFO 24 | log4j.logger.org.apache.log4j.config.PropertySetter=INFO 25 | log4j.logger.org.apache.log4j.FileAppender=INFO 26 | -------------------------------------------------------------------------------- /tests/input/pattern/enhancedPatternLayout12.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | log4j.rootCategory=DEBUG, testAppender 16 | log4j.appender.testAppender=org.apache.log4j.FileAppender 17 | log4j.appender.testAppender.File=output/temp 18 | log4j.appender.testAppender.Append=false 19 | log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout 20 | log4j.appender.testAppender.layout.ConversionPattern=[%t] %-5p %C.%M(%F:%L): %m%n 21 | 22 | # Prevent internal log4j DEBUG messages from polluting the output. 23 | log4j.logger.org.apache.log4j.PropertyConfigurator=INFO 24 | log4j.logger.org.apache.log4j.config.PropertySetter=INFO 25 | log4j.logger.org.apache.log4j.FileAppender=INFO 26 | -------------------------------------------------------------------------------- /tests/input/pattern/enhancedPatternLayout13.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | log4j.rootCategory=DEBUG, testAppender 16 | log4j.appender.testAppender=org.apache.log4j.FileAppender 17 | log4j.appender.testAppender.File=output/temp 18 | log4j.appender.testAppender.Append=false 19 | log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout 20 | log4j.appender.testAppender.layout.ConversionPattern=[%t] %-5p %C{3}.%M(%F:%L): %m%n 21 | 22 | # Prevent internal log4j DEBUG messages from polluting the output. 23 | log4j.logger.org.apache.log4j.PropertyConfigurator=INFO 24 | log4j.logger.org.apache.log4j.config.PropertySetter=INFO 25 | log4j.logger.org.apache.log4j.FileAppender=INFO 26 | -------------------------------------------------------------------------------- /tests/input/pattern/enhancedPatternLayout14.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | log4j.rootCategory=DEBUG, testAppender 16 | log4j.appender.testAppender=org.apache.log4j.FileAppender 17 | log4j.appender.testAppender.File=output/temp 18 | log4j.appender.testAppender.Append=false 19 | log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout 20 | log4j.appender.testAppender.layout.ConversionPattern=%-5p [%t] %c{1.}: %m%n 21 | 22 | # Prevent internal log4j DEBUG messages from polluting the output. 23 | log4j.logger.org.apache.log4j.PropertyConfigurator=INFO 24 | log4j.logger.org.apache.log4j.config.PropertySetter=INFO 25 | log4j.logger.org.apache.log4j.FileAppender=INFO 26 | -------------------------------------------------------------------------------- /tests/input/pattern/enhancedPatternLayout15.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | log4j.rootCategory=TRACE, testAppender 16 | log4j.appender.testAppender=org.apache.log4j.FileAppender 17 | log4j.appender.testAppender.File=output/temp 18 | log4j.appender.testAppender.Append=false 19 | log4j.appender.testAppender.layout=org.apache.log4j.EnhancedMyPatternLayout 20 | log4j.appender.testAppender.layout.ConversionPattern=%5p %-4# - %m%n 21 | 22 | # Prevent internal log4j DEBUG messages from polluting the output. 23 | log4j.logger.org.apache.log4j.PropertyConfigurator=INFO 24 | log4j.logger.org.apache.log4j.config.PropertySetter=INFO 25 | log4j.logger.org.apache.log4j.FileAppender=INFO 26 | 27 | -------------------------------------------------------------------------------- /tests/input/pattern/enhancedPatternLayout16.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | log4j.rootCategory=TRACE, testAppender 17 | log4j.appender.testAppender=org.apache.log4j.FileAppender 18 | log4j.appender.testAppender.File=output/patternLayout16.log 19 | log4j.appender.testAppender.Append=false 20 | log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout 21 | log4j.appender.testAppender.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss}{GMT}Z %d{yyyy-MM-dd HH:mm:ss}{GMT-6}-0600 - %m%n 22 | 23 | # Prevent internal log4j DEBUG messages from polluting the output. 24 | log4j.logger.org.apache.log4j.PropertyConfigurator=INFO 25 | log4j.logger.org.apache.log4j.config.PropertySetter=INFO 26 | log4j.logger.org.apache.log4j.FileAppender=INFO 27 | 28 | -------------------------------------------------------------------------------- /tests/input/pattern/enhancedPatternLayout2.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | log4j.rootCategory=DEBUG, testAppender 16 | log4j.appender.testAppender=org.apache.log4j.FileAppender 17 | log4j.appender.testAppender.File=output/temp 18 | log4j.appender.testAppender.Append= false 19 | log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout 20 | log4j.appender.testAppender.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %.16c - %m%n 21 | 22 | # Prevent internal log4j DEBUG messages from polluting the output. 23 | log4j.logger.org.apache.log4j.PropertyConfigurator=INFO 24 | log4j.logger.org.apache.log4j.config.PropertySetter=INFO 25 | log4j.logger.org.apache.log4j.FileAppender=INFO 26 | -------------------------------------------------------------------------------- /tests/input/pattern/enhancedPatternLayout3.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | log4j.rootCategory=DEBUG, testAppender 16 | log4j.appender.testAppender=org.apache.log4j.FileAppender 17 | log4j.appender.testAppender.File=output/temp 18 | log4j.appender.testAppender.Append=false 19 | log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout 20 | log4j.appender.testAppender.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss,SSS} [%t] %-5p %.16c - %m%n 21 | 22 | # Prevent internal log4j DEBUG messages from polluting the output. 23 | log4j.logger.org.apache.log4j.PropertyConfigurator=INFO 24 | log4j.logger.org.apache.log4j.config.PropertySetter=INFO 25 | log4j.logger.org.apache.log4j.FileAppender=INFO 26 | -------------------------------------------------------------------------------- /tests/input/pattern/enhancedPatternLayout4.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | log4j.rootCategory=DEBUG, testAppender 16 | log4j.appender.testAppender=org.apache.log4j.FileAppender 17 | log4j.appender.testAppender.File=output/temp 18 | log4j.appender.testAppender.Append=false 19 | log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout 20 | log4j.appender.testAppender.layout.ConversionPattern=%d{DATE} [%t] %-5p %.16c - %m%n 21 | 22 | # Prevent internal log4j DEBUG messages from polluting the output. 23 | log4j.logger.org.apache.log4j.PropertyConfigurator=INFO 24 | log4j.logger.org.apache.log4j.config.PropertySetter=INFO 25 | log4j.logger.org.apache.log4j.FileAppender=INFO 26 | -------------------------------------------------------------------------------- /tests/input/pattern/enhancedPatternLayout5.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | log4j.rootCategory=DEBUG, testAppender 16 | log4j.appender.testAppender=org.apache.log4j.FileAppender 17 | log4j.appender.testAppender.File=output/temp 18 | log4j.appender.testAppender.Append=false 19 | log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout 20 | log4j.appender.testAppender.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss,SSS} [%t] %-5p %.16c - %m%n 21 | 22 | # Prevent internal log4j DEBUG messages from polluting the output. 23 | log4j.logger.org.apache.log4j.PropertyConfigurator=INFO 24 | log4j.logger.org.apache.log4j.config.PropertySetter=INFO 25 | log4j.logger.org.apache.log4j.FileAppender=INFO 26 | -------------------------------------------------------------------------------- /tests/input/pattern/enhancedPatternLayout6.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | log4j.rootCategory=DEBUG, testAppender 16 | log4j.appender.testAppender=org.apache.log4j.FileAppender 17 | log4j.appender.testAppender.File=output/temp 18 | log4j.appender.testAppender.Append=false 19 | log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout 20 | log4j.appender.testAppender.layout.ConversionPattern=%d{ABSOLUTE} [%t] %-5p %.16c - %m%n 21 | 22 | 23 | # Prevent internal log4j DEBUG messages from polluting the output. 24 | log4j.logger.org.apache.log4j.PropertyConfigurator=INFO 25 | log4j.logger.org.apache.log4j.config.PropertySetter=INFO 26 | log4j.logger.org.apache.log4j.FileAppender=INFO 27 | -------------------------------------------------------------------------------- /tests/input/pattern/enhancedPatternLayout7.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | log4j.rootCategory=DEBUG, testAppender 16 | log4j.appender.testAppender=org.apache.log4j.FileAppender 17 | log4j.appender.testAppender.File=output/temp 18 | log4j.appender.testAppender.Append=false 19 | log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout 20 | log4j.appender.testAppender.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%t] %-5p %.16c - %m%n 21 | 22 | # Prevent internal log4j DEBUG messages from polluting the output. 23 | log4j.logger.org.apache.log4j.PropertyConfigurator=INFO 24 | log4j.logger.org.apache.log4j.config.PropertySetter=INFO 25 | log4j.logger.org.apache.log4j.FileAppender=INFO 26 | -------------------------------------------------------------------------------- /tests/input/pattern/enhancedPatternLayout8.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | log4j.rootCategory=DEBUG, testAppender 16 | log4j.appender.testAppender=org.apache.log4j.FileAppender 17 | log4j.appender.testAppender.File=output/temp 18 | log4j.appender.testAppender.Append=false 19 | log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout 20 | log4j.appender.testAppender.layout.ConversionPattern=%r [%t] %-5p %.16c - %m%n 21 | 22 | # Prevent internal log4j DEBUG messages from polluting the output. 23 | log4j.logger.org.apache.log4j.PropertyConfigurator=INFO 24 | log4j.logger.org.apache.log4j.config.PropertySetter=INFO 25 | log4j.logger.org.apache.log4j.FileAppender=INFO 26 | -------------------------------------------------------------------------------- /tests/input/pattern/enhancedPatternLayout9.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | log4j.rootCategory=DEBUG, testAppender 16 | log4j.appender.testAppender=org.apache.log4j.FileAppender 17 | log4j.appender.testAppender.File=output/temp 18 | log4j.appender.testAppender.Append=false 19 | log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout 20 | log4j.appender.testAppender.layout.ConversionPattern=[%t] %-5p %.16c : %m%n 21 | 22 | # Prevent internal log4j DEBUG messages from polluting the output. 23 | log4j.logger.org.apache.log4j.PropertyConfigurator=INFO 24 | log4j.logger.org.apache.log4j.config.PropertySetter=INFO 25 | log4j.logger.org.apache.log4j.FileAppender=INFO 26 | -------------------------------------------------------------------------------- /tests/input/patternLayout.mdc.1.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | log4j.rootCategory=DEBUG, testAppender 16 | log4j.appender.testAppender=org.apache.log4j.FileAppender 17 | log4j.appender.testAppender.File=output/temp 18 | log4j.appender.testAppender.Append=false 19 | log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout 20 | log4j.appender.testAppender.layout.ConversionPattern=%-5p - %m %X%n 21 | 22 | # Prevent internal log4j DEBUG messages from polluting the output. 23 | log4j.logger.org.apache.log4j.PropertyConfigurator=INFO 24 | log4j.logger.org.apache.log4j.config.PropertySetter=INFO 25 | log4j.logger.org.apache.log4j.FileAppender=INFO 26 | -------------------------------------------------------------------------------- /tests/input/patternLayout1.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | log4j.rootCategory=TRACE, testAppender 17 | log4j.appender.testAppender=org.apache.log4j.FileAppender 18 | log4j.appender.testAppender.File=output/temp 19 | log4j.appender.testAppender.Append=false 20 | log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout 21 | log4j.appender.testAppender.layout.ConversionPattern=%-5p - %m%n -------------------------------------------------------------------------------- /tests/input/patternLayout10.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | log4j.rootCategory=TRACE, testAppender 17 | log4j.appender.testAppender=org.apache.log4j.FileAppender 18 | log4j.appender.testAppender.File= output/temp 19 | log4j.appender.testAppender.Append= false 20 | log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout 21 | log4j.appender.testAppender.layout.ConversionPattern=[%t] %-5p %l: %m%n -------------------------------------------------------------------------------- /tests/input/patternLayout11.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | log4j.rootCategory=TRACE, testAppender 17 | log4j.appender.testAppender=org.apache.log4j.FileAppender 18 | log4j.appender.testAppender.File=output/temp 19 | log4j.appender.testAppender.Append=false 20 | log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout 21 | log4j.appender.testAppender.layout.ConversionPattern=%-5p [%t] %c{2}: %m%n -------------------------------------------------------------------------------- /tests/input/patternLayout12.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | log4j.rootCategory=TRACE, testAppender 17 | log4j.appender.testAppender=org.apache.log4j.FileAppender 18 | log4j.appender.testAppender.File=output/temp 19 | log4j.appender.testAppender.Append=false 20 | log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout 21 | log4j.appender.testAppender.layout.ConversionPattern=[%t] %-5p %C.%M(%F:%L): %m%n -------------------------------------------------------------------------------- /tests/input/patternLayout13.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | log4j.rootCategory=TRACE, testAppender 17 | log4j.appender.testAppender=org.apache.log4j.FileAppender 18 | log4j.appender.testAppender.File= output/temp 19 | log4j.appender.testAppender.Append=false 20 | log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout 21 | log4j.appender.testAppender.layout.ConversionPattern=[%t] %-5p %C{3}.%M(%F:%L): %m%n -------------------------------------------------------------------------------- /tests/input/patternLayout14.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | log4j.rootCategory=TRACE, testAppender 17 | log4j.appender.testAppender=org.apache.log4j.FileAppender 18 | log4j.appender.testAppender.File= output/temp 19 | log4j.appender.testAppender.Append=false 20 | log4j.appender.testAppender.layout=org.apache.log4j.MyPatternLayout 21 | log4j.appender.testAppender.layout.ConversionPattern=%5p %-4# - %m%n 22 | -------------------------------------------------------------------------------- /tests/input/patternLayout2.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | log4j.rootCategory=TRACE, testAppender 17 | log4j.appender.testAppender=org.apache.log4j.FileAppender 18 | log4j.appender.testAppender.File=output/temp 19 | log4j.appender.testAppender.Append= false 20 | log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout 21 | log4j.appender.testAppender.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %.16c - %m%n 22 | -------------------------------------------------------------------------------- /tests/input/patternLayout3.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | log4j.rootCategory=TRACE, testAppender 17 | log4j.appender.testAppender=org.apache.log4j.FileAppender 18 | log4j.appender.testAppender.File=output/temp 19 | log4j.appender.testAppender.Append=false 20 | log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout 21 | log4j.appender.testAppender.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss,SSS} [%t] %-5p %.16c - %m%n -------------------------------------------------------------------------------- /tests/input/patternLayout4.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | log4j.rootCategory=TRACE, testAppender 17 | log4j.appender.testAppender=org.apache.log4j.FileAppender 18 | log4j.appender.testAppender.File=output/temp 19 | log4j.appender.testAppender.Append=false 20 | log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout 21 | log4j.appender.testAppender.layout.ConversionPattern=%d{DATE} [%t] %-5p %.16c - %m%n -------------------------------------------------------------------------------- /tests/input/patternLayout5.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | log4j.rootCategory=TRACE, testAppender 17 | log4j.appender.testAppender=org.apache.log4j.FileAppender 18 | log4j.appender.testAppender.File=output/temp 19 | log4j.appender.testAppender.Append=false 20 | log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout 21 | log4j.appender.testAppender.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss,SSS} [%t] %-5p %.16c - %m%n -------------------------------------------------------------------------------- /tests/input/patternLayout6.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | log4j.rootCategory=TRACE, testAppender 17 | log4j.appender.testAppender=org.apache.log4j.FileAppender 18 | log4j.appender.testAppender.File=output/temp 19 | log4j.appender.testAppender.Append=false 20 | log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout 21 | log4j.appender.testAppender.layout.ConversionPattern=%d{ABSOLUTE} [%t] %-5p %.16c - %m%n -------------------------------------------------------------------------------- /tests/input/patternLayout7.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | log4j.rootCategory=TRACE, testAppender 17 | log4j.appender.testAppender=org.apache.log4j.FileAppender 18 | log4j.appender.testAppender.File=output/temp 19 | log4j.appender.testAppender.Append=false 20 | log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout 21 | log4j.appender.testAppender.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%t] %-5p %.16c - %m%n 22 | -------------------------------------------------------------------------------- /tests/input/patternLayout8.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | log4j.rootCategory=TRACE, testAppender 17 | log4j.appender.testAppender=org.apache.log4j.FileAppender 18 | log4j.appender.testAppender.File=output/temp 19 | log4j.appender.testAppender.Append=false 20 | log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout 21 | log4j.appender.testAppender.layout.ConversionPattern=%r [%t] %-5p %.16c - %m%n -------------------------------------------------------------------------------- /tests/input/patternLayout9.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | log4j.rootCategory=TRACE, testAppender 17 | log4j.appender.testAppender=org.apache.log4j.FileAppender 18 | log4j.appender.testAppender.File=output/temp 19 | log4j.appender.testAppender.Append=false 20 | log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout 21 | log4j.appender.testAppender.layout.ConversionPattern=[%t] %-5p %.16c : %m%n -------------------------------------------------------------------------------- /tests/input/socketServer1.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | log4j.rootLogger=TRACE, A 16 | log4j.logger.org.apache.log4j.test.ShortSocketServer=WARN 17 | log4j.logger.org.apache.log4j.net.SocketNode=WARN 18 | log4j.appender.A=org.apache.log4j.FileAppender 19 | log4j.appender.A.file=output/temp 20 | log4j.appender.A.Append=false 21 | log4j.appender.A.layout=org.apache.log4j.PatternLayout 22 | log4j.appender.A.layout.ConversionPattern=%5p %x [%t] %c %m%n 23 | 24 | -------------------------------------------------------------------------------- /tests/input/socketServer2.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | log4j.rootLogger=TRACE, A 16 | log4j.logger.org.apache.log4j.test.ShortSocketServer=WARN 17 | log4j.logger.org.apache.log4j.net.SocketNode=WARN 18 | log4j.appender.A=org.apache.log4j.FileAppender 19 | log4j.appender.A.file=output/temp 20 | log4j.appender.A.Append=false 21 | log4j.appender.A.layout=org.apache.log4j.PatternLayout 22 | log4j.appender.A.layout.ConversionPattern=%5p %x [%t] %C (%F:%L) %m%n 23 | 24 | -------------------------------------------------------------------------------- /tests/input/socketServer3.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | log4j.rootLogger=TRACE, A 16 | log4j.Logger.org.apache.log4j.test.ShortSocketServer=WARN 17 | log4j.Logger.org.apache.log4j.net.SocketNode=WARN 18 | log4j.appender.A=org.apache.log4j.FileAppender 19 | log4j.appender.A.file=output/temp 20 | log4j.appender.A.Append=false 21 | log4j.appender.A.layout=org.apache.log4j.PatternLayout 22 | log4j.appender.A.layout.ConversionPattern=%5p %x [%t] %C (%F:%L) %m%n 23 | -------------------------------------------------------------------------------- /tests/input/socketServer4.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | log4j.rootLogger=TRACE, A 16 | log4j.Logger.org.apache.log4j.test.ShortSocketServer=WARN 17 | log4j.Logger.org.apache.log4j.net.SocketNode=WARN 18 | log4j.appender.A=org.apache.log4j.FileAppender 19 | log4j.appender.A.file=output/temp 20 | log4j.appender.A.Append=false 21 | log4j.appender.A.layout=org.apache.log4j.PatternLayout 22 | log4j.appender.A.layout.ConversionPattern=%5p %x %X{key1}%X{key4} [%t] %c{1} - %m%n 23 | -------------------------------------------------------------------------------- /tests/input/socketServer5.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | log4j.rootLogger=TRACE, A 16 | log4j.Logger.org.apache.log4j.test.ShortSocketServer=WARN 17 | log4j.Logger.org.apache.log4j.net.SocketNode=WARN 18 | log4j.appender.A=org.apache.log4j.FileAppender 19 | log4j.appender.A.file=output/temp 20 | log4j.appender.A.Append=false 21 | log4j.appender.A.layout=org.apache.log4j.PatternLayout 22 | log4j.appender.A.layout.ConversionPattern=%5p %x %X{key1}%X{key5} [%t] %c{1} - %m%n 23 | -------------------------------------------------------------------------------- /tests/input/socketServer6.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | log4j.rootLogger=TRACE, A 16 | log4j.Logger.org.apache.log4j.test.ShortSocketServer=WARN 17 | log4j.Logger.org.apache.log4j.net.SocketNode=WARN 18 | log4j.appender.A=org.apache.log4j.FileAppender 19 | log4j.appender.A.file=output/temp 20 | log4j.appender.A.Append=false 21 | log4j.appender.A.layout=org.apache.log4j.PatternLayout 22 | log4j.appender.A.layout.ConversionPattern=%5p %x %X{hostID} %X{key6} [%t] %c{1} - %m%n 23 | -------------------------------------------------------------------------------- /tests/input/socketServer7.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | log4j.rootLogger=TRACE, A 16 | log4j.Logger.org.apache.log4j.test.ShortSocketServer=WARN 17 | log4j.Logger.org.apache.log4j.net.SocketNode=WARN 18 | log4j.appender.A=org.apache.log4j.FileAppender 19 | log4j.appender.A.file=output/temp 20 | log4j.appender.A.Append=false 21 | log4j.appender.A.layout=org.apache.log4j.PatternLayout 22 | log4j.appender.A.layout.ConversionPattern=%5p %x %X{hostID} %X{key7} [%t] %c{1} - %m%n 23 | -------------------------------------------------------------------------------- /tests/input/socketServer8.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | log4j.rootLogger=TRACE, A 16 | log4j.Logger.org.apache.log4j.test.ShortSocketServer=WARN 17 | log4j.Logger.org.apache.log4j.net.SocketNode=WARN 18 | log4j.appender.A=org.apache.log4j.FileAppender 19 | log4j.appender.A.file=output/temp 20 | log4j.appender.A.Append=false 21 | log4j.appender.A.layout=org.apache.log4j.PatternLayout 22 | log4j.appender.A.layout.ConversionPattern=%5p %x %X{hostID} %X{key8} [%t] %c{1} - %m%n 23 | -------------------------------------------------------------------------------- /tests/input/xml/DOMTest4_A1.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/input/xml/DOMTest4_A2.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /tests/input/xml/categoryfactory1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /tests/input/xml/customLevel1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /tests/input/xml/customLevel4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 19 | 20 | 22 | 23 | 24 | 25 | 26 | 27 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /tests/input/xml/customLogger1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 19 | 20 | 22 | 23 | 24 | 25 | 26 | 27 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /tests/input/xml/customLogger3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 19 | 20 | 22 | 23 | 24 | 25 | 26 | 27 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /tests/input/xml/defaultInit.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /tests/input/xml/loggerfactory1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /tests/input/xml/testReset.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/input/xml/throwableRenderer1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/resources/L7D_en_US.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | test=This is the English, US test. 16 | hello_world=Hello world. 17 | msg1=This is test number {0} with string argument {1}. 18 | -------------------------------------------------------------------------------- /tests/resources/L7D_fr.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | test=Ceci est le test en francais pour la France. 16 | hello_world=Bonjour la France. 17 | msg1=Ceci est le test numero {0} contenant l''argument {1}. 18 | -------------------------------------------------------------------------------- /tests/resources/L7D_fr_CH.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | test=Ceci est le test en francais pour la p'tite Suisse. 16 | hello world=Salut le monde. 17 | -------------------------------------------------------------------------------- /tests/resources/TestLogSFPatterns.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | Iteration0=Iteration {} 18 | Hello1=Hello, World 19 | Malformed=Hello, {. 20 | Hello2=Hello, {}World 21 | Hello3=Hello, {} 22 | Hello4={}, {}. 23 | Hello5={}{} {}. 24 | Hello6={}{} {}{} 25 | -------------------------------------------------------------------------------- /tests/resources/org/apache/log4j/TestLogMFPatterns.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | Iteration0=Iteration {0} 18 | Hello1=Hello, World 19 | Malformed=Hello, {. 20 | Hello2=Hello, {0}World 21 | Hello3=Hello, {0} 22 | Hello4={1}, {0}. 23 | Hello5={1}{2} {0}. 24 | Hello6={1}{2} {0}{3} 25 | -------------------------------------------------------------------------------- /tests/resources/org/apache/log4j/TestLogSFPatterns.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | Iteration0=Iteration {} 18 | Hello1=Hello, World 19 | Malformed=Hello, {. 20 | Hello2=Hello, {}World 21 | Hello3=Hello, {} 22 | Hello4={}, {}. 23 | Hello5={}{} {}. 24 | Hello6={}{} {}{} 25 | -------------------------------------------------------------------------------- /tests/resources/org/apache/log4j/rewrite/map.log: -------------------------------------------------------------------------------- 1 | INFO org.apache.log4j.rewrite.RewriteAppenderTest - p1: p2: Message 0 2 | INFO org.apache.log4j.rewrite.RewriteAppenderTest - p1:Hello p2:World {p1=Hello, p2=World, x1=Mundo} 3 | INFO org.apache.log4j.rewrite.RewriteAppenderTest - p1:Hello p2:World Message 1 4 | -------------------------------------------------------------------------------- /tests/resources/org/apache/log4j/rewrite/map.xml: -------------------------------------------------------------------------------- 1 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /tests/resources/org/apache/log4j/rewrite/property.log: -------------------------------------------------------------------------------- 1 | INFO org.apache.log4j.rewrite.RewriteAppenderTest - p1:Hello p2:World Message 0 2 | INFO org.apache.log4j.rewrite.RewriteAppenderTest - p1:Hola p2:World Message 1 3 | -------------------------------------------------------------------------------- /tests/resources/org/apache/log4j/rewrite/reflection.log: -------------------------------------------------------------------------------- 1 | INFO org.apache.log4j.rewrite.RewriteAppenderTest - p1: p2: Message 0 2 | INFO org.apache.log4j.rewrite.RewriteAppenderTest - p1: p2:Hello I am bean. 3 | INFO org.apache.log4j.rewrite.RewriteAppenderTest - p1:Hola p2:Hello Welcome to The Hub 4 | -------------------------------------------------------------------------------- /tests/resources/org/apache/log4j/rewrite/reflection.xml: -------------------------------------------------------------------------------- 1 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /tests/src/java/org/apache/log4j/DefaultThrowableRendererTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.log4j; 18 | 19 | import junit.framework.TestCase; 20 | import org.apache.log4j.spi.ThrowableRenderer; 21 | 22 | public class DefaultThrowableRendererTest extends TestCase { 23 | public DefaultThrowableRendererTest(final String name) { 24 | super(name); 25 | } 26 | 27 | public void testDefaultRender() { 28 | ThrowableRenderer r = new DefaultThrowableRenderer(); 29 | Exception ex = new Exception(); 30 | String[] strRep = r.doRender(ex); 31 | assertNotNull(strRep); 32 | assertTrue(strRep.length > 0); 33 | for(int i = 0; i < strRep.length; i++) { 34 | assertNotNull(strRep[i]); 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /tests/src/java/org/apache/log4j/Last.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.log4j; 19 | 20 | import junit.framework.TestCase; 21 | import junit.framework.TestSuite; 22 | import junit.framework.Test; 23 | 24 | public class Last extends TestCase { 25 | 26 | public Last(String name) { 27 | super(name); 28 | } 29 | 30 | 31 | public void test1() { 32 | } 33 | 34 | public static Test suite() { 35 | TestSuite suite = new TestSuite(); 36 | suite.addTest(new Last("test1")); 37 | return suite; 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /tests/src/java/org/apache/log4j/helpers/UtilLoggingLevelTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.log4j.helpers; 19 | 20 | import junit.framework.*; 21 | 22 | 23 | /** 24 | * Unit tests for UtilLoggingLevel. 25 | */ 26 | 27 | public class UtilLoggingLevelTest extends TestCase { 28 | 29 | /** 30 | * Create new instance of test. 31 | * 32 | * @param testName test name 33 | */ 34 | public UtilLoggingLevelTest(final String testName) { 35 | super(testName); 36 | } 37 | 38 | /** 39 | * Test toLevel("fiNeSt"). 40 | */ 41 | public void testToLevelFINEST() { 42 | assertSame(UtilLoggingLevel.FINEST, UtilLoggingLevel.toLevel("fiNeSt")); 43 | } 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /tests/src/java/org/apache/log4j/pattern/Num343PatternConverter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.log4j.pattern; 19 | 20 | import org.apache.log4j.spi.LoggingEvent; 21 | 22 | 23 | public class Num343PatternConverter extends LoggingEventPatternConverter { 24 | 25 | private Num343PatternConverter() { 26 | super("Num34", "num34"); 27 | } 28 | private static final Num343PatternConverter INSTANCE = new Num343PatternConverter(); 29 | 30 | public static PatternConverter newInstance(final String[] options) { 31 | return INSTANCE; 32 | } 33 | 34 | public void format(LoggingEvent event, StringBuffer toAppendTo) { 35 | toAppendTo.append("343"); 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /tests/src/java/org/apache/log4j/util/AbsoluteDateAndTimeFilter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.log4j.util; 19 | 20 | 21 | import org.apache.oro.text.perl.Perl5Util; 22 | 23 | public class AbsoluteDateAndTimeFilter implements Filter { 24 | 25 | Perl5Util util = new Perl5Util(); 26 | 27 | public 28 | String filter(String in) { 29 | String pat = "/"+Filter.ABSOLUTE_DATE_AND_TIME_PAT+"/"; 30 | 31 | if(util.match(pat, in)) { 32 | return util.substitute("s/"+Filter.ABSOLUTE_DATE_AND_TIME_PAT+"//", in); 33 | } else { 34 | return in; 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /tests/src/java/org/apache/log4j/util/AbsoluteTimeFilter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.log4j.util; 19 | 20 | 21 | import org.apache.oro.text.perl.Perl5Util; 22 | 23 | public class AbsoluteTimeFilter implements Filter { 24 | 25 | Perl5Util util = new Perl5Util(); 26 | 27 | public 28 | String filter(String in) { 29 | String pat = "/"+Filter.ABSOLUTE_TIME_PAT+"/"; 30 | 31 | if(util.match(pat, in)) { 32 | return util.substitute("s/"+Filter.ABSOLUTE_TIME_PAT+"//", in); 33 | } else { 34 | return in; 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /tests/src/java/org/apache/log4j/util/Filter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.log4j.util; 19 | 20 | public interface Filter { 21 | 22 | final String BASIC_PAT = "\\[main\\] (FATAL|ERROR|WARN|INFO|DEBUG)"; 23 | final String ISO8601_PAT = "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2},\\d{3}"; 24 | 25 | // 06 avr. 2002 18:36:32,036 26 | // 18 fevr. 2002 20:05:36,222 27 | static public final String ABSOLUTE_DATE_AND_TIME_PAT = 28 | "^\\d{1,2} .{2,6}\\.? 2\\d{3} \\d{2}:\\d{2}:\\d{2},\\d{3}"; 29 | 30 | // 18:54:19,201 31 | static public final String ABSOLUTE_TIME_PAT = 32 | "^\\d{2}:\\d{2}:\\d{2},\\d{3}"; 33 | 34 | static public final String RELATIVE_TIME_PAT = "^\\d{1,10}"; 35 | 36 | 37 | String filter(String in) throws UnexpectedFormatException; 38 | } 39 | -------------------------------------------------------------------------------- /tests/src/java/org/apache/log4j/util/ISO8601Filter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.log4j.util; 19 | 20 | import org.apache.oro.text.perl.Perl5Util; 21 | 22 | public class ISO8601Filter implements Filter { 23 | 24 | Perl5Util util = new Perl5Util(); 25 | 26 | public 27 | String filter(String in) { 28 | String pat = "/"+ISO8601_PAT +"/"; 29 | 30 | if(util.match(pat, in)) { 31 | return util.substitute("s/"+ISO8601_PAT+"//", in); 32 | } else { 33 | return in; 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tests/src/java/org/apache/log4j/util/LineNumberFilter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.log4j.util; 19 | 20 | import org.apache.oro.text.perl.Perl5Util; 21 | 22 | public class LineNumberFilter implements Filter { 23 | 24 | Perl5Util util = new Perl5Util(); 25 | 26 | public 27 | String filter(String in) { 28 | if(util.match("/\\(.*:\\d{1,4}\\)/", in)) { 29 | return util.substitute("s/:\\d{1,4}\\)/:XXX)/", in); 30 | } else { 31 | if(in.indexOf(", Compiled Code") >= 0) { 32 | return util.substitute("s/, Compiled Code/:XXX/", in); 33 | } 34 | return in; 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /tests/src/java/org/apache/log4j/util/RelativeTimeFilter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.log4j.util; 19 | 20 | import org.apache.oro.text.perl.Perl5Util; 21 | 22 | public class RelativeTimeFilter implements Filter { 23 | 24 | Perl5Util util = new Perl5Util(); 25 | 26 | public 27 | String filter(String in) { 28 | String pat = "/"+Filter.RELATIVE_TIME_PAT+"/"; 29 | 30 | if(util.match(pat, in)) { 31 | //System.out.println("Removing relative time from line ["+in+"]"); 32 | return util.substitute("s/"+Filter.RELATIVE_TIME_PAT+"//", in); 33 | } else { 34 | return in; 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /tests/src/java/org/apache/log4j/util/UnexpectedFormatException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.log4j.util; 19 | 20 | public class UnexpectedFormatException extends Exception { 21 | private static final long serialVersionUID = 1787725660780924147L; 22 | 23 | public UnexpectedFormatException(String msg) { 24 | super(msg); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /tests/src/java/org/apache/log4j/util/XMLLineAttributeFilter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.log4j.util; 19 | 20 | import org.apache.oro.text.perl.Perl5Util; 21 | 22 | public class XMLLineAttributeFilter implements Filter { 23 | 24 | Perl5Util util = new Perl5Util(); 25 | 26 | public 27 | String filter(String in) { 28 | if(util.match("/line=\"\\d{1,3}\"/", in)) { 29 | return util.substitute("s/line=\"\\d{1,3}\"/line=\"X\"/", in); 30 | } else if(util.match("/line=\"?\"/", in)) { 31 | return util.substitute("s/line=\"?\"/line=\"X\"/", in); 32 | } else { 33 | return in; 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tests/src/java/org/apache/log4j/util/XMLTimestampFilter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.log4j.util; 19 | 20 | import org.apache.oro.text.perl.Perl5Util; 21 | 22 | public class XMLTimestampFilter implements Filter { 23 | 24 | Perl5Util util = new Perl5Util(); 25 | 26 | public 27 | String filter(String in) { 28 | if(util.match("/timestamp=\"\\d{10,13}\"/", in)) { 29 | return util.substitute("s/timestamp=\"\\d{10,13}\"/timestamp=\"XXX\"/", in); 30 | } else { 31 | return in; 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /tests/witness/LevelMatchFilter_accept: -------------------------------------------------------------------------------- 1 | TRACE - pass 0; filter set to accept only TRACE msgs 2 | DEBUG - pass 1; filter set to accept only DEBUG msgs 3 | INFO - pass 2; filter set to accept only INFO msgs 4 | WARN - pass 3; filter set to accept only WARN msgs 5 | ERROR - pass 4; filter set to accept only ERROR msgs 6 | FATAL - pass 5; filter set to accept only FATAL msgs 7 | -------------------------------------------------------------------------------- /tests/witness/LevelMatchFilter_deny: -------------------------------------------------------------------------------- 1 | DEBUG - pass 0; filter set to deny only TRACE msgs 2 | INFO - pass 0; filter set to deny only TRACE msgs 3 | WARN - pass 0; filter set to deny only TRACE msgs 4 | ERROR - pass 0; filter set to deny only TRACE msgs 5 | FATAL - pass 0; filter set to deny only TRACE msgs 6 | TRACE - pass 1; filter set to deny only DEBUG msgs 7 | INFO - pass 1; filter set to deny only DEBUG msgs 8 | WARN - pass 1; filter set to deny only DEBUG msgs 9 | ERROR - pass 1; filter set to deny only DEBUG msgs 10 | FATAL - pass 1; filter set to deny only DEBUG msgs 11 | TRACE - pass 2; filter set to deny only INFO msgs 12 | DEBUG - pass 2; filter set to deny only INFO msgs 13 | WARN - pass 2; filter set to deny only INFO msgs 14 | ERROR - pass 2; filter set to deny only INFO msgs 15 | FATAL - pass 2; filter set to deny only INFO msgs 16 | TRACE - pass 3; filter set to deny only WARN msgs 17 | DEBUG - pass 3; filter set to deny only WARN msgs 18 | INFO - pass 3; filter set to deny only WARN msgs 19 | ERROR - pass 3; filter set to deny only WARN msgs 20 | FATAL - pass 3; filter set to deny only WARN msgs 21 | TRACE - pass 4; filter set to deny only ERROR msgs 22 | DEBUG - pass 4; filter set to deny only ERROR msgs 23 | INFO - pass 4; filter set to deny only ERROR msgs 24 | WARN - pass 4; filter set to deny only ERROR msgs 25 | FATAL - pass 4; filter set to deny only ERROR msgs 26 | TRACE - pass 5; filter set to deny only FATAL msgs 27 | DEBUG - pass 5; filter set to deny only FATAL msgs 28 | INFO - pass 5; filter set to deny only FATAL msgs 29 | WARN - pass 5; filter set to deny only FATAL msgs 30 | ERROR - pass 5; filter set to deny only FATAL msgs 31 | -------------------------------------------------------------------------------- /tests/witness/PatternParser_mdc: -------------------------------------------------------------------------------- 1 | starting mdc pattern test 2 | empty mdc, no key specified in pattern : {} 3 | empty mdc, key1 in pattern : 4 | empty mdc, key2 in pattern : 5 | empty mdc, key3 in pattern : 6 | empty mdc, key1, key2, and key3 in pattern : ,, 7 | filled mdc, no key specified in pattern : {{key1,value1}{key2,value2}} 8 | filled mdc, key1 in pattern : value1 9 | filled mdc, key2 in pattern : value2 10 | filled mdc, key3 in pattern : 11 | filled mdc, key1, key2, and key3 in pattern : value1,value2, 12 | finished mdc pattern test 13 | -------------------------------------------------------------------------------- /tests/witness/customLevel.1: -------------------------------------------------------------------------------- 1 | DEBUG xml.CustomLevelTestCase - Message 1 2 | INFO xml.CustomLevelTestCase - Message 2 3 | WARN xml.CustomLevelTestCase - Message 3 4 | ERROR xml.CustomLevelTestCase - Message 4 5 | TRACE xml.CustomLevelTestCase - Message 5 6 | -------------------------------------------------------------------------------- /tests/witness/customLevel.2: -------------------------------------------------------------------------------- 1 | DEBUG xml.CustomLevelTestCase - Message 1 2 | INFO xml.CustomLevelTestCase - Message 2 3 | WARN xml.CustomLevelTestCase - Message 3 4 | ERROR xml.CustomLevelTestCase - Message 4 5 | TRACE xml.CustomLevelTestCase - Message 5 6 | -------------------------------------------------------------------------------- /tests/witness/customLevel.3: -------------------------------------------------------------------------------- 1 | TRACE xml.CustomLevelTestCase - Message 5 2 | -------------------------------------------------------------------------------- /tests/witness/customLevel.4: -------------------------------------------------------------------------------- 1 | DEBUG xml.CustomLevelTestCase - Message 1 2 | INFO xml.CustomLevelTestCase - Message 2 3 | WARN xml.CustomLevelTestCase - Message 3 4 | ERROR xml.CustomLevelTestCase - Message 4 5 | TRACE xml.CustomLevelTestCase - Message 5 6 | -------------------------------------------------------------------------------- /tests/witness/customLogger.1: -------------------------------------------------------------------------------- 1 | TRACE customLogger.XLoggerTestCase - Message 0 2 | DEBUG customLogger.XLoggerTestCase - Message 1 3 | WARN customLogger.XLoggerTestCase - Message 2 4 | ERROR customLogger.XLoggerTestCase - Message 3 5 | FATAL customLogger.XLoggerTestCase - Message 4 6 | DEBUG customLogger.XLoggerTestCase - Message 5 7 | java.lang.Exception: Just testing 8 | at org.apache.log4j.customLogger.XLoggerTestCase.common(XLoggerTestCase.java:XXX) 9 | at org.apache.log4j.customLogger.XLoggerTestCase.test1(XLoggerTestCase.java:XXX) 10 | at junit.framework.TestCase.runTest(TestCase.java:XXX) 11 | at junit.framework.TestCase.runBare(TestCase.java:XXX) 12 | at junit.framework.TestResult$1.protect(TestResult.java:XXX) 13 | at junit.framework.TestResult.runProtected(TestResult.java:XXX) 14 | at junit.framework.TestResult.run(TestResult.java:XXX) 15 | at junit.framework.TestCase.run(TestCase.java:XXX) 16 | at junit.framework.TestSuite.runTest(TestSuite.java:XXX) 17 | at junit.framework.TestSuite.run(TestSuite.java:XXX) 18 | -------------------------------------------------------------------------------- /tests/witness/customLogger.2: -------------------------------------------------------------------------------- 1 | TRACE customLogger.XLoggerTestCase - Message 0 2 | -------------------------------------------------------------------------------- /tests/witness/drfa_blockedRollover.log: -------------------------------------------------------------------------------- 1 | INFO - Prior to rollover 2 | INFO - Rollover attempt while blocked 3 | INFO - Message after block removed 4 | -------------------------------------------------------------------------------- /tests/witness/hierarchyThreshold.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/logging-log4j1/b7e9154128cd4ae1244c877a6fda8f834a0f2247/tests/witness/hierarchyThreshold.1 -------------------------------------------------------------------------------- /tests/witness/hierarchyThreshold.2: -------------------------------------------------------------------------------- 1 | FATAL [main] log4j.HierarchyThresholdTestCase = m5 2 | -------------------------------------------------------------------------------- /tests/witness/hierarchyThreshold.3: -------------------------------------------------------------------------------- 1 | ERROR [main] log4j.HierarchyThresholdTestCase = m4 2 | FATAL [main] log4j.HierarchyThresholdTestCase = m5 3 | -------------------------------------------------------------------------------- /tests/witness/hierarchyThreshold.4: -------------------------------------------------------------------------------- 1 | WARN [main] log4j.HierarchyThresholdTestCase = m3 2 | ERROR [main] log4j.HierarchyThresholdTestCase = m4 3 | FATAL [main] log4j.HierarchyThresholdTestCase = m5 4 | -------------------------------------------------------------------------------- /tests/witness/hierarchyThreshold.5: -------------------------------------------------------------------------------- 1 | INFO [main] log4j.HierarchyThresholdTestCase = m2 2 | WARN [main] log4j.HierarchyThresholdTestCase = m3 3 | ERROR [main] log4j.HierarchyThresholdTestCase = m4 4 | FATAL [main] log4j.HierarchyThresholdTestCase = m5 5 | -------------------------------------------------------------------------------- /tests/witness/hierarchyThreshold.6: -------------------------------------------------------------------------------- 1 | DEBUG [main] log4j.HierarchyThresholdTestCase = m1 2 | INFO [main] log4j.HierarchyThresholdTestCase = m2 3 | WARN [main] log4j.HierarchyThresholdTestCase = m3 4 | ERROR [main] log4j.HierarchyThresholdTestCase = m4 5 | FATAL [main] log4j.HierarchyThresholdTestCase = m5 6 | -------------------------------------------------------------------------------- /tests/witness/hierarchyThreshold.7: -------------------------------------------------------------------------------- 1 | TRACE [main] log4j.HierarchyThresholdTestCase = m0 2 | DEBUG [main] log4j.HierarchyThresholdTestCase = m1 3 | INFO [main] log4j.HierarchyThresholdTestCase = m2 4 | WARN [main] log4j.HierarchyThresholdTestCase = m3 5 | ERROR [main] log4j.HierarchyThresholdTestCase = m4 6 | FATAL [main] log4j.HierarchyThresholdTestCase = m5 7 | -------------------------------------------------------------------------------- /tests/witness/hierarchyThreshold.8: -------------------------------------------------------------------------------- 1 | TRACE [main] log4j.HierarchyThresholdTestCase = m0 2 | DEBUG [main] log4j.HierarchyThresholdTestCase = m1 3 | INFO [main] log4j.HierarchyThresholdTestCase = m2 4 | WARN [main] log4j.HierarchyThresholdTestCase = m3 5 | ERROR [main] log4j.HierarchyThresholdTestCase = m4 6 | FATAL [main] log4j.HierarchyThresholdTestCase = m5 7 | -------------------------------------------------------------------------------- /tests/witness/pattern/enhancedPatternLayout.mdc.1: -------------------------------------------------------------------------------- 1 | DEBUG - Hello World {{key1,va11}{key2,va12}} -------------------------------------------------------------------------------- /tests/witness/pattern/enhancedPatternLayout.mdc.2: -------------------------------------------------------------------------------- 1 | starting mdc pattern test 2 | empty mdc, no key specified in pattern : {} 3 | empty mdc, key1 in pattern : 4 | empty mdc, key2 in pattern : 5 | empty mdc, key3 in pattern : 6 | empty mdc, key1, key2, and key3 in pattern : ,, 7 | filled mdc, no key specified in pattern : {{key1,value1}{key2,value2}} 8 | filled mdc, key1 in pattern : value1 9 | filled mdc, key2 in pattern : value2 10 | filled mdc, key3 in pattern : 11 | filled mdc, key1, key2, and key3 in pattern : value1,value2, 12 | finished mdc pattern test 13 | -------------------------------------------------------------------------------- /tests/witness/patternLayout.mdc.1: -------------------------------------------------------------------------------- 1 | DEBUG - Hello World {{key1,va11}{key2,va12}} -------------------------------------------------------------------------------- /tests/witness/patternLayout.mdc.clear: -------------------------------------------------------------------------------- 1 | DEBUG - Hello World {{key1,va11}{key2,va12}} 2 | DEBUG - Hello World {} -------------------------------------------------------------------------------- /tests/witness/prudent: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/logging-log4j1/b7e9154128cd4ae1244c877a6fda8f834a0f2247/tests/witness/prudent -------------------------------------------------------------------------------- /tests/witness/serialization/exception.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/logging-log4j1/b7e9154128cd4ae1244c877a6fda8f834a0f2247/tests/witness/serialization/exception.bin -------------------------------------------------------------------------------- /tests/witness/serialization/info.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/logging-log4j1/b7e9154128cd4ae1244c877a6fda8f834a0f2247/tests/witness/serialization/info.bin -------------------------------------------------------------------------------- /tests/witness/serialization/location.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/logging-log4j1/b7e9154128cd4ae1244c877a6fda8f834a0f2247/tests/witness/serialization/location.bin -------------------------------------------------------------------------------- /tests/witness/serialization/mdc.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/logging-log4j1/b7e9154128cd4ae1244c877a6fda8f834a0f2247/tests/witness/serialization/mdc.bin -------------------------------------------------------------------------------- /tests/witness/serialization/ndc.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/logging-log4j1/b7e9154128cd4ae1244c877a6fda8f834a0f2247/tests/witness/serialization/ndc.bin -------------------------------------------------------------------------------- /tests/witness/serialization/simple.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/logging-log4j1/b7e9154128cd4ae1244c877a6fda8f834a0f2247/tests/witness/serialization/simple.bin -------------------------------------------------------------------------------- /tests/witness/simple: -------------------------------------------------------------------------------- 1 | FATAL - Message 0 2 | ERROR - Message 1 3 | FATAL - Message 2 4 | ERROR - Message 3 5 | WARN - Message 4 6 | INFO - Message 5 7 | FATAL - Message 6 8 | ERROR - Message 7 9 | WARN - Message 8 10 | INFO - Message 9 11 | FATAL - Message 10 12 | ERROR - Message 11 13 | FATAL - Message 12 14 | ERROR - Message 13 15 | FATAL - Message 14 16 | ERROR - Message 15 17 | WARN - Message 16 18 | INFO - Message 17 19 | DEBUG - Message 18 20 | FATAL - Message 19 21 | ERROR - Message 20 22 | WARN - Message 21 23 | INFO - Message 22 24 | DEBUG - Message 23 25 | TRACE - Message 24 26 | FATAL - Message 25 27 | ERROR - Message 26 28 | WARN - Message 27 29 | INFO - Message 28 30 | DEBUG - Message 29 31 | java.lang.Exception: Just testing. 32 | at org.apache.log4j.MinimumTestCase.common(MinimumTestCase.java:XXX) 33 | at org.apache.log4j.MinimumTestCase.simple(MinimumTestCase.java:XXX) 34 | at junit.framework.TestCase.runTest(TestCase.java:XXX) 35 | at junit.framework.TestCase.runBare(TestCase.java:XXX) 36 | at junit.framework.TestResult$1.protect(TestResult.java:XXX) 37 | at junit.framework.TestResult.runProtected(TestResult.java:XXX) 38 | at junit.framework.TestResult.run(TestResult.java:XXX) 39 | at junit.framework.TestCase.run(TestCase.java:XXX) 40 | at junit.framework.TestSuite.runTest(TestSuite.java:XXX) 41 | at junit.framework.TestSuite.run(TestSuite.java:XXX) 42 | INFO - Messages should bear numbers 0 through 29. 43 | -------------------------------------------------------------------------------- /tests/witness/xmlLayout.3: -------------------------------------------------------------------------------- 1 | 2 | hi]]>]]> 3 | 4 | 5 | 6 | 7 | hi]]>]]> 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /tests/witness/xmlLayout.mdc.1: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /tests/witness/xmlLayout.mdc.2: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /tests/witness/xmlLayout.null: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 22 | 23 | 24 | --------------------------------------------------------------------------------