├── logback-core ├── .gitignore ├── src │ ├── test │ │ ├── witness │ │ │ ├── rolling │ │ │ │ ├── tbr-test1.0 │ │ │ │ ├── tbr-test3.0 │ │ │ │ ├── tbr-test4.0 │ │ │ │ ├── tbr-test4B.0 │ │ │ │ ├── tbr-test5.0 │ │ │ │ ├── renaming.0 │ │ │ │ ├── renaming.1 │ │ │ │ ├── tbr-test1.2 │ │ │ │ ├── tbr-test2.2 │ │ │ │ ├── tbr-test4B.3 │ │ │ │ ├── tbr-test5.2 │ │ │ │ ├── tbr-test6.2 │ │ │ │ ├── tbr-test7.2 │ │ │ │ ├── tbr-test8.2 │ │ │ │ ├── tbr-test4B.2 │ │ │ │ ├── tbr-test3.2 │ │ │ │ ├── tbr-test3.3 │ │ │ │ ├── tbr-test4B.1 │ │ │ │ ├── tbr-test4B.4 │ │ │ │ ├── tbr-test5.1 │ │ │ │ ├── tbr-test1.1 │ │ │ │ ├── tbr-test3.1 │ │ │ │ ├── tbr-test4.1 │ │ │ │ ├── tbr-test4.2 │ │ │ │ ├── tbr-test4.3 │ │ │ │ ├── tbr-failed_rename │ │ │ │ ├── sbr-test2.l │ │ │ │ ├── sbr-test3.l │ │ │ │ ├── sbr-test2.0 │ │ │ │ ├── sbr-test2.1 │ │ │ │ ├── sbr-test3.0.gz │ │ │ │ ├── sbr-test3.1.gz │ │ │ │ ├── tbr-test2.0.gz │ │ │ │ ├── tbr-test2.1.gz │ │ │ │ ├── tbr-test6.0.gz │ │ │ │ ├── tbr-test6.1.gz │ │ │ │ ├── tbr-test7.0.gz │ │ │ │ ├── tbr-test7.1.gz │ │ │ │ ├── tbr-test8.0.zip │ │ │ │ └── tbr-test8.1.zip │ │ │ ├── compress1.txt.gz │ │ │ └── compress2.txt.gz │ │ ├── input │ │ │ ├── .gitignore │ │ │ ├── joran │ │ │ │ ├── inclusion │ │ │ │ │ ├── invalid.xml │ │ │ │ │ ├── subByFile.xml │ │ │ │ │ ├── includedEntity.xml │ │ │ │ │ ├── second.xml │ │ │ │ │ ├── topByUrl.xml │ │ │ │ │ ├── included.xml │ │ │ │ │ ├── topByFile.xml │ │ │ │ │ ├── topByResource.xml │ │ │ │ │ ├── intermediaryByFile.xml │ │ │ │ │ ├── multiIncludeByFile.xml │ │ │ │ │ ├── topByEntity.xml │ │ │ │ │ ├── topOptional.xml │ │ │ │ │ └── topOptionalResource.xml │ │ │ │ ├── propertyActionTest.properties │ │ │ │ ├── define │ │ │ │ │ ├── badclass.xml │ │ │ │ │ ├── noclass.xml │ │ │ │ │ ├── canonicalHostname.xml │ │ │ │ │ ├── noname.xml │ │ │ │ │ └── good.xml │ │ │ │ ├── ampEvent.xml │ │ │ │ ├── attributesEvent.xml │ │ │ │ ├── fire1.xml │ │ │ │ ├── inc.xml │ │ │ │ ├── illformed.xml │ │ │ │ ├── conditional │ │ │ │ │ ├── includedB.xml │ │ │ │ │ ├── includedA.xml │ │ │ │ │ ├── ifWithoutElse.xml │ │ │ │ │ ├── ifSystem.xml │ │ │ │ │ ├── if0.xml │ │ │ │ │ ├── if_localProperty.xml │ │ │ │ │ ├── nestedInclude.xml │ │ │ │ │ └── nestedIf.xml │ │ │ │ ├── implicitAction │ │ │ │ │ ├── statusListenerWithPrefix.xml │ │ │ │ │ ├── nestedComplexWithoutClassAtrribute.xml │ │ │ │ │ ├── nestedComplex.xml │ │ │ │ │ ├── nestedComplexCollectionWithoutClassAtrribute.xml │ │ │ │ │ └── nestedComplexCollection.xml │ │ │ │ ├── replay │ │ │ │ │ ├── fruit1.xml │ │ │ │ │ ├── fruitWithSubst.xml │ │ │ │ │ └── fruit2.xml │ │ │ │ ├── spacesAndQuotes.xml │ │ │ │ ├── event1.xml │ │ │ │ └── skip │ │ │ │ │ ├── badBegin1.xml │ │ │ │ │ ├── badEnd1.xml │ │ │ │ │ ├── badBegin2.xml │ │ │ │ │ └── badEnd2.xml │ │ │ └── compress1.original │ │ ├── resources │ │ │ ├── util │ │ │ │ ├── testResource.txt │ │ │ │ └── README │ │ │ ├── asResource │ │ │ │ └── joran │ │ │ │ │ ├── propertyActionTest.properties │ │ │ │ │ └── inclusion │ │ │ │ │ └── includedAsResource.xml │ │ │ └── net │ │ │ │ └── ssl │ │ │ │ ├── keystore.jks │ │ │ │ ├── keystore.p12 │ │ │ │ └── README │ │ └── java │ │ │ └── ch │ │ │ └── qos │ │ │ └── logback │ │ │ └── core │ │ │ ├── joran │ │ │ ├── util │ │ │ │ ├── Window.java │ │ │ │ ├── Orange.java │ │ │ │ └── Citrus.java │ │ │ └── action │ │ │ │ └── TopElementAction.java │ │ │ ├── model │ │ │ └── TopModel.java │ │ │ └── util │ │ │ └── FixedRateInvocationGate.java │ └── main │ │ └── java │ │ └── ch │ │ └── qos │ │ └── logback │ │ └── core │ │ ├── model │ │ ├── IncludeModel.java │ │ ├── INamedModel.java │ │ ├── processor │ │ │ ├── ModelFilter.java │ │ │ ├── DenyAllModelFilter.java │ │ │ ├── AllowAllModelFilter.java │ │ │ ├── ProcessorException.java │ │ │ ├── ModelHandlerException.java │ │ │ ├── AllowModelFilter.java │ │ │ └── DenyModelFilter.java │ │ └── conditional │ │ │ └── ThenModel.java │ │ ├── util │ │ ├── package.html │ │ └── InvocationGate.java │ │ ├── helpers │ │ └── package.html │ │ ├── status │ │ └── package.html │ │ ├── joran │ │ ├── package.html │ │ ├── sanity │ │ │ └── Pair.java │ │ ├── spi │ │ │ └── NewRuleProvider.java │ │ └── node │ │ │ └── ComponentNode.java │ │ ├── package.html │ │ ├── net │ │ ├── server │ │ │ └── package.html │ │ └── package.html │ │ ├── rolling │ │ ├── helper │ │ │ └── package.html │ │ ├── package.html │ │ └── LengthCounter.java │ │ ├── html │ │ ├── package.html │ │ ├── CssBuilder.java │ │ └── IThrowableRenderer.java │ │ ├── filter │ │ └── package.html │ │ ├── spi │ │ ├── SequenceNumberGenerator.java │ │ ├── package.html │ │ ├── BasicSequenceNumberGenerator.java │ │ └── DeferredProcessingAware.java │ │ ├── pattern │ │ ├── package.html │ │ └── util │ │ │ └── IEscapeUtil.java │ │ ├── boolex │ │ └── package.html │ │ ├── hook │ │ └── package.html │ │ └── property │ │ └── CanonicalHostNamePropertyDefiner.java └── LICENSE.txt ├── logback-examples ├── .gitignore └── src │ └── main │ ├── resources │ ├── resource1.properties │ ├── chapters │ │ ├── configuration │ │ │ ├── variables1.properties │ │ │ ├── variables2.properties │ │ │ ├── containingConfig.xml │ │ │ ├── variableSubstitution2.xml │ │ │ ├── contextName.xml │ │ │ ├── includedConfig.xml │ │ │ ├── contextScopedVariable.xml │ │ │ ├── variableSubstitution1.xml │ │ │ ├── scan2.xml │ │ │ ├── variableSubstitution4.xml │ │ │ ├── variableSubstitution3.xml │ │ │ ├── duplicate.xml │ │ │ ├── scan1.xml │ │ │ ├── sample0.xml │ │ │ ├── sample1.xml │ │ │ ├── sample4.xml │ │ │ ├── insertFromJNDI.xml │ │ │ ├── onConsoleStatusListener.xml │ │ │ ├── sample3.xml │ │ │ ├── multiple.xml │ │ │ └── additivityFlag.xml │ │ ├── onJoran │ │ │ ├── helloWorld │ │ │ │ ├── hello.xml │ │ │ │ └── readme.txt │ │ │ ├── calculator │ │ │ │ ├── calculator1.xml │ │ │ │ ├── calculator2.xml │ │ │ │ ├── readme.txt │ │ │ │ └── calculator3.xml │ │ │ ├── implicit │ │ │ │ ├── readme.txt │ │ │ │ └── implicit1.xml │ │ │ └── newRule │ │ │ │ └── readme.txt │ │ ├── appenders │ │ │ ├── socket │ │ │ │ └── ssl │ │ │ │ │ ├── keystore.jks │ │ │ │ │ ├── truststore.jks │ │ │ │ │ └── server.xml │ │ │ ├── conf │ │ │ │ ├── logback-MDC.xml │ │ │ │ ├── logback-syslog.xml │ │ │ │ ├── logback-Console.xml │ │ │ │ ├── logback-async.xml │ │ │ │ ├── access │ │ │ │ │ ├── logback-DB.xml │ │ │ │ │ └── logback-SMTP.xml │ │ │ │ ├── logback-JMSQueue.xml │ │ │ │ ├── logback-JMSTopic.xml │ │ │ │ ├── logback-SMTP.xml │ │ │ │ ├── logback-HtmlToConsole.xml │ │ │ │ ├── logback-fileAppender.xml │ │ │ │ └── logback-SMTPWithHtml.xml │ │ │ ├── countingConsole.xml │ │ │ ├── db │ │ │ │ ├── append-via-jndi.xml │ │ │ │ ├── append-with-drivermanager.xml │ │ │ │ ├── append-toMySQL-with-driverManager.xml │ │ │ │ ├── append-toMySQL-with-datasource-and-pooling.xml │ │ │ │ └── append-toMySQL-with-datasource.xml │ │ │ └── mail │ │ │ │ ├── mail2.xml │ │ │ │ ├── customBufferSize.xml │ │ │ │ └── mail1.xml │ │ ├── migrationFromLog4j │ │ │ ├── log4jTrivial.properties │ │ │ └── logback-trivial.xml │ │ ├── filters │ │ │ ├── basicConfiguration.xml │ │ │ ├── sampleFilterConfig.xml │ │ │ ├── sampleTurboFilterConfig.xml │ │ │ ├── duplicateMessage.xml │ │ │ ├── levelFilterConfig.xml │ │ │ ├── thresholdFilterConfig.xml │ │ │ └── basicEventEvaluator.xml │ │ ├── layouts │ │ │ ├── sampleLayoutConfig.xml │ │ │ ├── mySampleConverterConfig.xml │ │ │ ├── log4jXMLLayout.xml │ │ │ ├── htmlLayoutConfig1.xml │ │ │ ├── sampleLayoutConfig2.xml │ │ │ ├── exceptionEvaluatorConfig.xml │ │ │ └── callerEvaluatorConfig.xml │ │ ├── mdc │ │ │ ├── simpleMDC.xml │ │ │ └── mdc1.xml │ │ ├── architecture │ │ │ └── sample-config-1.xml │ │ └── receivers │ │ │ └── socket │ │ │ ├── appender3.xml │ │ │ └── appender1.xml │ ├── setClasspath.cmd │ └── setClasspath.sh │ └── java9 │ └── module-info.java ├── logback-classic ├── src │ ├── test │ │ ├── input │ │ │ ├── joran │ │ │ │ ├── ossfuzz │ │ │ │ │ ├── fuzz-46697.xml │ │ │ │ │ ├── unknownProperty.xml │ │ │ │ │ ├── fuzz-47293.xml │ │ │ │ │ ├── fuzz-47117-bis.xml │ │ │ │ │ ├── nestedComplexWithNoKnownClass.xml │ │ │ │ │ ├── fuzz-47117-bis2.xml │ │ │ │ │ ├── noConfig.xml │ │ │ │ │ ├── fuzz-47117.xml │ │ │ │ │ └── fuzz-47093.xml │ │ │ │ ├── issues │ │ │ │ │ ├── lbcore254.properties │ │ │ │ │ ├── lbcore254.xml │ │ │ │ │ ├── logback_1672.xml │ │ │ │ │ ├── logback_1678_shutdown.xml │ │ │ │ │ ├── logback_1674.xml │ │ │ │ │ ├── lbcore193.xml │ │ │ │ │ └── logback_1162.xml │ │ │ │ ├── include │ │ │ │ │ ├── included0.xml │ │ │ │ │ └── topLevel0.xml │ │ │ │ ├── contextRename.xml │ │ │ │ ├── timestamp-context.xml │ │ │ │ ├── hostnameProperty.xml │ │ │ │ ├── spi │ │ │ │ │ ├── contextListener.xml │ │ │ │ │ └── contextListenerWithImports.xml │ │ │ │ ├── additivity.xml │ │ │ │ ├── timestamp-local.xml │ │ │ │ ├── model │ │ │ │ │ └── minimal.xml │ │ │ │ ├── sequenceNumberGenerator-missingClass.xml │ │ │ │ ├── simpleEvaluator.xml │ │ │ │ ├── sequenceNumberGenerator.xml │ │ │ │ ├── rootLevelByProperty.xml │ │ │ │ ├── conditional │ │ │ │ │ └── withoutJanino.xml │ │ │ │ ├── pattern │ │ │ │ │ ├── kvp.xml │ │ │ │ │ ├── replace0.xml │ │ │ │ │ └── replaceNewline.xml │ │ │ │ ├── properties.xml │ │ │ │ ├── appenderRefBeforeAppender.xml │ │ │ │ ├── missingProperty.xml │ │ │ │ ├── simpleList.xml │ │ │ │ ├── levelFilter.xml │ │ │ │ ├── onConsoleRetro.xml │ │ │ │ ├── simpleLevel.xml │ │ │ │ ├── unreferencedAppender1.xml │ │ │ │ ├── loggerLevelByProperty.xml │ │ │ │ ├── simpleListWithImports.xml │ │ │ │ ├── appenderRefByProperty.xml │ │ │ │ ├── encoderCharset.xml │ │ │ │ ├── simple2.xml │ │ │ │ ├── conversionRule │ │ │ │ │ ├── conversionRuleTop0.xml │ │ │ │ │ ├── htmlLayout0.xml │ │ │ │ │ ├── patternLayout0.xml │ │ │ │ │ ├── conversionRuleIncluded.xml │ │ │ │ │ └── conversionRuleAtEnd.xml │ │ │ │ ├── packagingDataDisabled.xml │ │ │ │ ├── propsMissingRightCurlyBrace.xml │ │ │ │ ├── compatibility │ │ │ │ │ ├── layoutInsteadOfEncoder.xml │ │ │ │ │ └── immediateFlushInEncoder.xml │ │ │ │ ├── packagingDataEnabled.xml │ │ │ │ ├── sift │ │ │ │ │ ├── zeroNesting.xml │ │ │ │ │ ├── unsetDefaultValueProperty.xml │ │ │ │ │ ├── lingering.xml │ │ │ │ │ ├── smoke.xml │ │ │ │ │ ├── completeCycle.xml │ │ │ │ │ ├── defaultLayoutRule.xml │ │ │ │ │ ├── multipleNesting.xml │ │ │ │ │ ├── timeout.xml │ │ │ │ │ ├── maxAppenderCount.xml │ │ │ │ │ ├── logback_416.xml │ │ │ │ │ ├── propertyPropagation.xml │ │ │ │ │ └── fileAppender.xml │ │ │ │ ├── syslog_LBCLASSIC_50.xml │ │ │ │ ├── unique.xml │ │ │ │ ├── statusListener.xml │ │ │ │ ├── turbo.xml │ │ │ │ ├── propertiesConfigurator │ │ │ │ │ └── smoke.properties │ │ │ │ ├── asyncAppender_list_after.xml │ │ │ │ ├── asyncAppender_list_first.xml │ │ │ │ ├── ignore.xml │ │ │ │ ├── turbo2.xml │ │ │ │ ├── statusListenerWithImports.xml │ │ │ │ ├── roct │ │ │ │ │ ├── scan 1.groovy │ │ │ │ │ └── scan_perf.xml │ │ │ │ ├── dateWithLocale.xml │ │ │ │ ├── rolling │ │ │ │ │ ├── basic.xml │ │ │ │ │ ├── timeAndSizeWithoutIntegerToken.xml │ │ │ │ │ └── totalSizeCapSmallerThanMaxFileSize.xml │ │ │ │ ├── callerData.xml │ │ │ │ └── turboDynamicThreshold.xml │ │ │ ├── issue │ │ │ │ ├── logback292.xml │ │ │ │ └── lbcore26.xml │ │ │ ├── serialization │ │ │ │ ├── logger_v1.0.11.ser │ │ │ │ └── logger_v1.0.12.ser │ │ │ ├── integration │ │ │ │ ├── autoInit │ │ │ │ │ └── logback.xml │ │ │ │ └── db │ │ │ │ │ ├── oracle11g-with-driver.xml │ │ │ │ │ ├── mysql-with-driver.xml │ │ │ │ │ ├── oracle10g-with-driver.xml │ │ │ │ │ ├── postgresql-with-driver.xml │ │ │ │ │ └── sqlserver-with-driver.xml │ │ │ ├── autoConfig.xml │ │ │ ├── socket │ │ │ │ ├── serverConfig.xml │ │ │ │ └── clientConfig.xml │ │ │ ├── osgi │ │ │ │ └── simple.xml │ │ │ └── listAppender.xml │ │ ├── resources │ │ │ ├── FAKE_META_INF_SERVICES_ch_qos_logback_classic_spi_Configurator │ │ │ ├── META-INF │ │ │ │ └── services │ │ │ │ │ └── DISABLED-ch.qos.logback.classic.spi.Configurator │ │ │ ├── README.txt │ │ │ ├── autoConfigAsResource.xml │ │ │ ├── BOO_logback-test.xml │ │ │ └── recursiveInit.xml │ │ ├── java │ │ │ └── ch │ │ │ │ └── qos │ │ │ │ └── logback │ │ │ │ └── classic │ │ │ │ ├── net │ │ │ │ └── testObjectBuilders │ │ │ │ │ └── MinimalSer.java │ │ │ │ ├── joran │ │ │ │ └── sanity │ │ │ │ │ └── ClassicTopModel.java │ │ │ │ ├── testUtil │ │ │ │ ├── GaussianDump.java │ │ │ │ └── Gaussian.java │ │ │ │ ├── issue │ │ │ │ ├── logback_1162 │ │ │ │ │ └── reproduce-bug.sh │ │ │ │ ├── logback1159 │ │ │ │ │ └── LoggingError.java │ │ │ │ ├── lbclassic180 │ │ │ │ │ └── logback.xml │ │ │ │ └── lbcore243 │ │ │ │ │ └── Common.java │ │ │ │ ├── pattern │ │ │ │ ├── XThrowableHandlingConverter.java │ │ │ │ └── XCompositeConverter.java │ │ │ │ ├── spi │ │ │ │ └── LogbackServiceProviderTest.java │ │ │ │ ├── control │ │ │ │ └── ScenarioAction.java │ │ │ │ └── LevelTest.java │ │ └── checkResults.sh │ ├── main │ │ ├── resources │ │ │ └── META-INF │ │ │ │ └── services │ │ │ │ ├── org.slf4j.spi.SLF4JServiceProvider │ │ │ │ └── jakarta.servlet.ServletContainerInitializer │ │ └── java │ │ │ └── ch │ │ │ └── qos │ │ │ └── logback │ │ │ └── classic │ │ │ ├── jul │ │ │ └── package.html │ │ │ ├── helpers │ │ │ └── package.html │ │ │ ├── util │ │ │ └── package.html │ │ │ ├── package.html │ │ │ ├── joran │ │ │ └── package.html │ │ │ ├── net │ │ │ ├── package.html │ │ │ ├── server │ │ │ │ └── package.html │ │ │ └── SocketAcceptor.java │ │ │ ├── log4j │ │ │ └── package.html │ │ │ ├── spi │ │ │ └── package.html │ │ │ ├── html │ │ │ └── package.html │ │ │ ├── pattern │ │ │ └── package.html │ │ │ └── model │ │ │ └── ContextNameModel.java │ └── IBUNDLE-META-INF │ │ └── MANIFEST.MF ├── .gitignore ├── performance │ └── records │ │ ├── ArrayListLogger │ │ └── jprofiler_images │ │ │ ├── menu_bar_18.gif │ │ │ ├── menu_tee_18.gif │ │ │ ├── menu_corner_18.gif │ │ │ ├── menu_tee_plus_18.gif │ │ │ ├── menu_tee_minus_18.gif │ │ │ ├── menu_corner_minus_18.gif │ │ │ ├── menu_corner_plus_18.gif │ │ │ ├── pixel_transparent_1.gif │ │ │ └── arrow_diagonal_down_16.png │ │ └── HashtableInLogger │ │ └── jprofiler_images │ │ ├── clock_16.png │ │ ├── ff00c400.png │ │ ├── menu_bar_18.gif │ │ ├── menu_tee_18.gif │ │ ├── pixel_red_1.gif │ │ ├── menu_corner_18.gif │ │ ├── pixel_green_1.gif │ │ ├── menu_tee_plus_18.gif │ │ ├── heap_allocation_16.png │ │ ├── menu_corner_plus_18.gif │ │ ├── menu_tee_minus_18.gif │ │ ├── pixel_transparent_1.gif │ │ ├── menu_corner_minus_18.gif │ │ ├── arrow_diagonal_down_16.png │ │ ├── clock_arrow_diagonal_down_16.png │ │ └── heap_allocation_arrow_diagonal_down_16.png └── LICENSE.txt ├── logback-classic-blackbox ├── src │ └── test │ │ ├── resources │ │ └── asResource │ │ │ └── inner1.xml │ │ └── blackboxInput │ │ └── joran │ │ ├── roct │ │ ├── inclusion │ │ │ ├── inner0.xml │ │ │ ├── topByResource.xml │ │ │ └── topLevel0.xml │ │ ├── scan_period_default.xml │ │ ├── scan 1.xml │ │ └── scan_logback_474.xml │ │ ├── jul │ │ ├── levelChangePropagator1.xml │ │ └── levelChangePropagator0.xml │ │ ├── conditional │ │ ├── includedFile.xml │ │ └── conditionalIncludeInexistentFile.xml │ │ ├── evaluatorFilter.xml │ │ ├── issues │ │ ├── logback_1678.xml │ │ └── logback_1673bis.xml │ │ ├── evaluatorFilterWithImports.xml │ │ └── callerData.xml └── LICENSE.txt ├── logback-core-blackbox ├── src │ └── test │ │ ├── blackboxInput │ │ ├── joran │ │ │ └── conditional │ │ │ │ ├── includedB.xml │ │ │ │ ├── includedA.xml │ │ │ │ ├── ifWithoutElse.xml │ │ │ │ ├── ifSystem.xml │ │ │ │ ├── if0.xml │ │ │ │ ├── ifNew.xml │ │ │ │ ├── if_localProperty.xml │ │ │ │ ├── nestedInclude.xml │ │ │ │ └── nestedIf.xml │ │ └── compress1.original │ │ └── java │ │ ├── ch │ │ └── qos │ │ │ └── logback │ │ │ └── core │ │ │ └── blackbox │ │ │ └── model │ │ │ └── BlackboxTopModel.java │ │ └── module-info.java └── LICENSE.txt ├── goscp ├── .travis.yml ├── .gitignore ├── src └── main │ ├── javadocHeaders.xml │ └── licenseHeader.txt ├── LICENSE.txt ├── logback-access └── LICENSE.txt └── .gitattributes /logback-core/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /logback-examples/.gitignore: -------------------------------------------------------------------------------- 1 | lib/ -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test1.0: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test3.0: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test4.0: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test4B.0: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test5.0: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /logback-core/src/test/input/.gitignore: -------------------------------------------------------------------------------- 1 | compress?.txt 2 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/inclusion/invalid.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/ossfuzz/fuzz-46697.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/renaming.0: -------------------------------------------------------------------------------- 1 | Hello 0 2 | -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/renaming.1: -------------------------------------------------------------------------------- 1 | Hello 1 2 | -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test1.2: -------------------------------------------------------------------------------- 1 | Hello---2 2 | -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test2.2: -------------------------------------------------------------------------------- 1 | Hello---2 2 | -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test4B.3: -------------------------------------------------------------------------------- 1 | World---0 -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test5.2: -------------------------------------------------------------------------------- 1 | Hello---2 2 | -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test6.2: -------------------------------------------------------------------------------- 1 | Hello---2 2 | -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test7.2: -------------------------------------------------------------------------------- 1 | Hello---2 2 | -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test8.2: -------------------------------------------------------------------------------- 1 | Hello---2 2 | -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test4B.2: -------------------------------------------------------------------------------- 1 | Hello---2 2 | -------------------------------------------------------------------------------- /logback-classic/.gitignore: -------------------------------------------------------------------------------- 1 | bundle/ 2 | lib/ 3 | felix-cache/ 4 | bin/ 5 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/issues/lbcore254.properties: -------------------------------------------------------------------------------- 1 | k0=v0 -------------------------------------------------------------------------------- /logback-core/src/test/resources/util/testResource.txt: -------------------------------------------------------------------------------- 1 | TEST RESOURCE 2 | -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test3.2: -------------------------------------------------------------------------------- 1 | Hello---2 2 | World---0 -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test3.3: -------------------------------------------------------------------------------- 1 | World---1 2 | World---2 -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test4B.1: -------------------------------------------------------------------------------- 1 | Hello---0 2 | Hello---1 -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test4B.4: -------------------------------------------------------------------------------- 1 | World---1 2 | World---2 -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test5.1: -------------------------------------------------------------------------------- 1 | Hello---0 2 | Hello---1 -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test1.1: -------------------------------------------------------------------------------- 1 | Hello---0 2 | Hello---1 3 | -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test3.1: -------------------------------------------------------------------------------- 1 | Hello---0 2 | Hello---1 3 | -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test4.1: -------------------------------------------------------------------------------- 1 | Hello---0 2 | Hello---1 3 | -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test4.2: -------------------------------------------------------------------------------- 1 | Hello---2 2 | World---0 3 | -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test4.3: -------------------------------------------------------------------------------- 1 | World---1 2 | World---2 3 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/propertyActionTest.properties: -------------------------------------------------------------------------------- 1 | v1=tata 2 | v2=toto -------------------------------------------------------------------------------- /logback-examples/src/main/resources/resource1.properties: -------------------------------------------------------------------------------- 1 | USER_HOME=/home/sebastien -------------------------------------------------------------------------------- /logback-core/src/test/resources/asResource/joran/propertyActionTest.properties: -------------------------------------------------------------------------------- 1 | r1=tata 2 | r2=toto -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-failed_rename: -------------------------------------------------------------------------------- 1 | Hello---0 2 | Hello---1 3 | Hello---2 4 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/issue/logback292.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/sbr-test2.l: -------------------------------------------------------------------------------- 1 | 01234567890123456789012345678901234567890123456789 -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/sbr-test3.l: -------------------------------------------------------------------------------- 1 | 01234567890123456789012345678901234567890123456789 -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/configuration/variables1.properties: -------------------------------------------------------------------------------- 1 | USER_HOME=/home/sebastien -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/ossfuzz/unknownProperty.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/inclusion/subByFile.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/onJoran/helloWorld/hello.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/ossfuzz/fuzz-47293.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/define/badclass.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/include/included0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /logback-classic-blackbox/src/test/resources/asResource/inner1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/ampEvent.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | xxx & yyy 4 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/attributesEvent.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/contextRename.xml: -------------------------------------------------------------------------------- 1 | 2 | wombat 3 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/ossfuzz/fuzz-47117-bis.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/ossfuzz/nestedComplexWithNoKnownClass.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/fire1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | abc 5 | 6 | -------------------------------------------------------------------------------- /logback-classic/src/main/resources/META-INF/services/org.slf4j.spi.SLF4JServiceProvider: -------------------------------------------------------------------------------- 1 | ch.qos.logback.classic.spi.LogbackServiceProvider -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/define/noclass.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Monster 4 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/inc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /logback-classic-blackbox/src/test/blackboxInput/joran/roct/inclusion/inner0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /logback-classic/src/test/resources/FAKE_META_INF_SERVICES_ch_qos_logback_classic_spi_Configurator: -------------------------------------------------------------------------------- 1 | ch.qos.logback.classic.util.MockConfigurator -------------------------------------------------------------------------------- /logback-classic/src/test/resources/META-INF/services/DISABLED-ch.qos.logback.classic.spi.Configurator: -------------------------------------------------------------------------------- 1 | ch.qos.logback.classic.BasicConfigurator -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/illformed.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /logback-core/src/test/witness/compress1.txt.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-core/src/test/witness/compress1.txt.gz -------------------------------------------------------------------------------- /logback-core/src/test/witness/compress2.txt.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-core/src/test/witness/compress2.txt.gz -------------------------------------------------------------------------------- /logback-core/src/test/resources/util/README: -------------------------------------------------------------------------------- 1 | These resources are used by the LocationUtil unit tests in package 2 | ch.qos.logback.classic.util. 3 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/issues/lbcore254.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/sbr-test2.0: -------------------------------------------------------------------------------- 1 | 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/sbr-test2.1: -------------------------------------------------------------------------------- 1 | 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 -------------------------------------------------------------------------------- /logback-core/src/test/resources/net/ssl/keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-core/src/test/resources/net/ssl/keystore.jks -------------------------------------------------------------------------------- /logback-core/src/test/resources/net/ssl/keystore.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-core/src/test/resources/net/ssl/keystore.p12 -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/sbr-test3.0.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-core/src/test/witness/rolling/sbr-test3.0.gz -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/sbr-test3.1.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-core/src/test/witness/rolling/sbr-test3.1.gz -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test2.0.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-core/src/test/witness/rolling/tbr-test2.0.gz -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test2.1.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-core/src/test/witness/rolling/tbr-test2.1.gz -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test6.0.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-core/src/test/witness/rolling/tbr-test6.0.gz -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test6.1.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-core/src/test/witness/rolling/tbr-test6.1.gz -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test7.0.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-core/src/test/witness/rolling/tbr-test7.0.gz -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test7.1.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-core/src/test/witness/rolling/tbr-test7.1.gz -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test8.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-core/src/test/witness/rolling/tbr-test8.0.zip -------------------------------------------------------------------------------- /logback-core/src/test/witness/rolling/tbr-test8.1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-core/src/test/witness/rolling/tbr-test8.1.zip -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/onJoran/calculator/calculator1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/ossfuzz/fuzz-47117-bis2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/inclusion/includedEntity.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /logback-classic/src/main/resources/META-INF/services/jakarta.servlet.ServletContainerInitializer: -------------------------------------------------------------------------------- 1 | ch.qos.logback.classic.servlet.LogbackServletContainerInitializer 2 | -------------------------------------------------------------------------------- /logback-core/src/test/java/ch/qos/logback/core/joran/util/Window.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.core.joran.util; 2 | 3 | public class Window { 4 | int handle; 5 | } 6 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/configuration/variables2.properties: -------------------------------------------------------------------------------- 1 | USER_HOME=/home/sebastien 2 | fileName=myApp.log 3 | destination=${USER_HOME}/${fileName} -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/timestamp-context.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/serialization/logger_v1.0.11.ser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-classic/src/test/input/serialization/logger_v1.0.11.ser -------------------------------------------------------------------------------- /logback-classic/src/test/input/serialization/logger_v1.0.12.ser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-classic/src/test/input/serialization/logger_v1.0.12.ser -------------------------------------------------------------------------------- /logback-classic/src/main/java/ch/qos/logback/classic/jul/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Logback <-> java.util.logging (JUL) integration. 7 | 8 | 9 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/ossfuzz/noConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | a -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/conditional/includedB.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/define/canonicalHostname.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/define/noname.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Monster 4 | 5 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/inclusion/second.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/hostnameProperty.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/define/good.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | MONSTER 4 | 5 | 6 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/appenders/socket/ssl/keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-examples/src/main/resources/chapters/appenders/socket/ssl/keystore.jks -------------------------------------------------------------------------------- /logback-core-blackbox/src/test/blackboxInput/joran/conditional/includedB.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/inclusion/topByUrl.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/appenders/socket/ssl/truststore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-examples/src/main/resources/chapters/appenders/socket/ssl/truststore.jks -------------------------------------------------------------------------------- /logback-classic/performance/records/ArrayListLogger/jprofiler_images/menu_bar_18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-classic/performance/records/ArrayListLogger/jprofiler_images/menu_bar_18.gif -------------------------------------------------------------------------------- /logback-classic/performance/records/ArrayListLogger/jprofiler_images/menu_tee_18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-classic/performance/records/ArrayListLogger/jprofiler_images/menu_tee_18.gif -------------------------------------------------------------------------------- /logback-classic/performance/records/HashtableInLogger/jprofiler_images/clock_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-classic/performance/records/HashtableInLogger/jprofiler_images/clock_16.png -------------------------------------------------------------------------------- /logback-classic/performance/records/HashtableInLogger/jprofiler_images/ff00c400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-classic/performance/records/HashtableInLogger/jprofiler_images/ff00c400.png -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/ossfuzz/fuzz-47117.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/inclusion/included.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/inclusion/topByFile.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /logback-classic/performance/records/HashtableInLogger/jprofiler_images/menu_bar_18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-classic/performance/records/HashtableInLogger/jprofiler_images/menu_bar_18.gif -------------------------------------------------------------------------------- /logback-classic/performance/records/HashtableInLogger/jprofiler_images/menu_tee_18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-classic/performance/records/HashtableInLogger/jprofiler_images/menu_tee_18.gif -------------------------------------------------------------------------------- /logback-classic/performance/records/HashtableInLogger/jprofiler_images/pixel_red_1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-classic/performance/records/HashtableInLogger/jprofiler_images/pixel_red_1.gif -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/spi/contextListener.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /logback-classic/performance/records/ArrayListLogger/jprofiler_images/menu_corner_18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-classic/performance/records/ArrayListLogger/jprofiler_images/menu_corner_18.gif -------------------------------------------------------------------------------- /logback-classic/performance/records/ArrayListLogger/jprofiler_images/menu_tee_plus_18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-classic/performance/records/ArrayListLogger/jprofiler_images/menu_tee_plus_18.gif -------------------------------------------------------------------------------- /logback-classic/performance/records/HashtableInLogger/jprofiler_images/menu_corner_18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-classic/performance/records/HashtableInLogger/jprofiler_images/menu_corner_18.gif -------------------------------------------------------------------------------- /logback-classic/performance/records/HashtableInLogger/jprofiler_images/pixel_green_1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-classic/performance/records/HashtableInLogger/jprofiler_images/pixel_green_1.gif -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/conditional/includedA.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /logback-classic/performance/records/ArrayListLogger/jprofiler_images/menu_tee_minus_18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-classic/performance/records/ArrayListLogger/jprofiler_images/menu_tee_minus_18.gif -------------------------------------------------------------------------------- /logback-classic/performance/records/HashtableInLogger/jprofiler_images/menu_tee_plus_18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-classic/performance/records/HashtableInLogger/jprofiler_images/menu_tee_plus_18.gif -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/inclusion/topByResource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /logback-classic/performance/records/ArrayListLogger/jprofiler_images/menu_corner_minus_18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-classic/performance/records/ArrayListLogger/jprofiler_images/menu_corner_minus_18.gif -------------------------------------------------------------------------------- /logback-classic/performance/records/ArrayListLogger/jprofiler_images/menu_corner_plus_18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-classic/performance/records/ArrayListLogger/jprofiler_images/menu_corner_plus_18.gif -------------------------------------------------------------------------------- /logback-classic/performance/records/ArrayListLogger/jprofiler_images/pixel_transparent_1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-classic/performance/records/ArrayListLogger/jprofiler_images/pixel_transparent_1.gif -------------------------------------------------------------------------------- /logback-classic/performance/records/HashtableInLogger/jprofiler_images/heap_allocation_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-classic/performance/records/HashtableInLogger/jprofiler_images/heap_allocation_16.png -------------------------------------------------------------------------------- /logback-classic/performance/records/HashtableInLogger/jprofiler_images/menu_corner_plus_18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-classic/performance/records/HashtableInLogger/jprofiler_images/menu_corner_plus_18.gif -------------------------------------------------------------------------------- /logback-classic/performance/records/HashtableInLogger/jprofiler_images/menu_tee_minus_18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-classic/performance/records/HashtableInLogger/jprofiler_images/menu_tee_minus_18.gif -------------------------------------------------------------------------------- /logback-classic/performance/records/HashtableInLogger/jprofiler_images/pixel_transparent_1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-classic/performance/records/HashtableInLogger/jprofiler_images/pixel_transparent_1.gif -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/ossfuzz/fuzz-47093.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /logback-classic/performance/records/ArrayListLogger/jprofiler_images/arrow_diagonal_down_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-classic/performance/records/ArrayListLogger/jprofiler_images/arrow_diagonal_down_16.png -------------------------------------------------------------------------------- /logback-classic/performance/records/HashtableInLogger/jprofiler_images/menu_corner_minus_18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-classic/performance/records/HashtableInLogger/jprofiler_images/menu_corner_minus_18.gif -------------------------------------------------------------------------------- /logback-core-blackbox/src/test/blackboxInput/joran/conditional/includedA.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/implicitAction/statusListenerWithPrefix.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | aPrefix 4 | 5 | -------------------------------------------------------------------------------- /logback-classic/performance/records/HashtableInLogger/jprofiler_images/arrow_diagonal_down_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-classic/performance/records/HashtableInLogger/jprofiler_images/arrow_diagonal_down_16.png -------------------------------------------------------------------------------- /logback-core/src/test/resources/asResource/joran/inclusion/includedAsResource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /logback-classic-blackbox/src/test/blackboxInput/joran/roct/scan_period_default.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/model/IncludeModel.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.core.model; 2 | 3 | public class IncludeModel extends ResourceModel { 4 | private static final long serialVersionUID = -9114108510322703902L; 5 | } 6 | -------------------------------------------------------------------------------- /logback-classic/performance/records/HashtableInLogger/jprofiler_images/clock_arrow_diagonal_down_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-classic/performance/records/HashtableInLogger/jprofiler_images/clock_arrow_diagonal_down_16.png -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/additivity.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/model/INamedModel.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.core.model; 2 | 3 | public interface INamedModel { 4 | 5 | public String getName(); 6 | 7 | public void setName(String name); 8 | 9 | } 10 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/inclusion/intermediaryByFile.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/integration/autoInit/logback.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/onJoran/implicit/readme.txt: -------------------------------------------------------------------------------- 1 | 2 | This directory contains an example illustrating implicit actions. 3 | 4 | For further information, please refer to 5 | 6 | http://logback.qos.ch/manual/onJoran.html#implicit 7 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/inclusion/multiIncludeByFile.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/onJoran/helloWorld/readme.txt: -------------------------------------------------------------------------------- 1 | The example illustrates the minimal plumbing required for using Joran. 2 | 3 | For further explanations, please refer to 4 | 5 | http://logback.qos.ch/manual/onJoran.html#helloWorld 6 | 7 | -------------------------------------------------------------------------------- /logback-classic-blackbox/src/test/blackboxInput/joran/roct/scan 1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /logback-classic/performance/records/HashtableInLogger/jprofiler_images/heap_allocation_arrow_diagonal_down_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qos-ch/logback/HEAD/logback-classic/performance/records/HashtableInLogger/jprofiler_images/heap_allocation_arrow_diagonal_down_16.png -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/migrationFromLog4j/log4jTrivial.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=DEBUG, TRIVIAL 2 | log4j.appender.TRIVIAL=chapters.migrationFromLog4j.TrivialLog4jAppender 3 | log4j.appender.TRIVIAL.layout=chapters.migrationFromLog4j.TrivialLog4jLayout -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/util/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

Contains various utility classes.

11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/implicitAction/nestedComplexWithoutClassAtrribute.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | blue 6 | hello 7 | world 8 | 9 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/replay/fruit1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | blue 7 | 8 | 9 | -------------------------------------------------------------------------------- /goscp: -------------------------------------------------------------------------------- 1 | TARGET=cgulcu@hqchnesoa07:/srv/jboss-eap-4.3.0.GA_CP05/jboss-as/server/nesoa-04-esb-01/lib/ 2 | 3 | scp logback-core/target/logback-core-0.9.27-SNAPSHOT.jar logback-classic/target/logback-classic-0.9.27-SNAPSHOT.jar logback-access/target/logback-access-0.9.27-SNAPSHOT.jar $TARGET -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/spi/contextListenerWithImports.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /logback-examples/src/main/java9/module-info.java: -------------------------------------------------------------------------------- 1 | module logback.examples { 2 | requires org.slf4j; 3 | requires ch.qos.logback.core; 4 | requires ch.qos.logback.classic; 5 | 6 | 7 | // exports chapters.configuration; 8 | 9 | } 10 | 11 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/helpers/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

Helpers package.

11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/inclusion/topByEntity.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | ]> 5 | 6 | 7 | 8 | &includedEntity; 9 | 10 | 11 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/spacesAndQuotes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | [x][x] "xyz"%n 7 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/onJoran/newRule/readme.txt: -------------------------------------------------------------------------------- 1 | 2 | This directory contains an example showing how Joran can 3 | learn new parsing rules on the fly. 4 | 5 | For further documentation please see 6 | 7 | http://logback.qos.ch/manual/onJoran.html#newRule 8 | 9 | -------------------------------------------------------------------------------- /logback-classic/src/main/java/ch/qos/logback/classic/helpers/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

Contains helpers.

11 | 12 | 13 | -------------------------------------------------------------------------------- /logback-classic/src/main/java/ch/qos/logback/classic/util/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

Contains utility classes.

11 | 12 | 13 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/status/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

Contains logback's internal error reporting system.

11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | dist: trusty 2 | 3 | language: java 4 | 5 | jdk: 6 | - oraclejdk11 7 | 8 | notifications: 9 | email: 10 | - notification@qos.ch 11 | 12 | install: /bin/true 13 | 14 | script: 15 | - mvn clean 16 | - mvn install 17 | cache: 18 | directories: 19 | - $HOME/.m2 20 | -------------------------------------------------------------------------------- /logback-classic/src/main/java/ch/qos/logback/classic/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

Contains logback classic main classes.

11 | 12 | 13 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/joran/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

Contains Joran configuration classes.

11 | 12 | 13 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

Contains the main classes of logback core.

11 | 12 | 13 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/inclusion/topOptional.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /logback-classic/src/main/java/ch/qos/logback/classic/joran/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

Contains Joran configuration classes.

11 | 12 | 13 | -------------------------------------------------------------------------------- /logback-classic/src/main/java/ch/qos/logback/classic/net/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

Contains classes used to log through a network

11 | 12 | -------------------------------------------------------------------------------- /logback-classic-blackbox/src/test/blackboxInput/joran/jul/levelChangePropagator1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /logback-classic-blackbox/src/test/blackboxInput/joran/roct/inclusion/topByResource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /logback-classic/src/main/java/ch/qos/logback/classic/log4j/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

Contains support for log4j output formats.

11 | 12 | 13 | -------------------------------------------------------------------------------- /logback-classic/src/main/java/ch/qos/logback/classic/spi/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

Contains core classes of logback classic.

11 | 12 | 13 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/timestamp-local.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/conditional/ifWithoutElse.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/implicitAction/nestedComplex.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | blue 6 | hello 7 | world 8 | 9 | -------------------------------------------------------------------------------- /logback-classic/src/main/java/ch/qos/logback/classic/html/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

Contains classes to format log output in HTML.

11 | 12 | 13 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/model/minimal.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/inclusion/topOptionalResource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/onJoran/calculator/calculator2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/sequenceNumberGenerator-missingClass.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /logback-core-blackbox/src/test/blackboxInput/joran/conditional/ifWithoutElse.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/model/processor/ModelFilter.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.core.model.processor; 2 | 3 | import ch.qos.logback.core.model.Model; 4 | import ch.qos.logback.core.spi.FilterReply; 5 | 6 | public interface ModelFilter { 7 | 8 | FilterReply decide(Model model); 9 | 10 | } 11 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/net/server/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

Contains the base classes used by logback to serve logging events to 8 | remote peers.

9 | 10 | 11 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/rolling/helper/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |

Internal helper classes used by {@link ch.qos.logback.core.rolling} package.

9 | 10 |
11 | 12 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/onJoran/calculator/readme.txt: -------------------------------------------------------------------------------- 1 | This directory contains the calculator example. It shows how Actions can 2 | collaborate in order to accomplish a simple computation. 3 | 4 | For further information, please refer to 5 | 6 | http://logback.qos.ch/manual/onJoran.html#calculator 7 | 8 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/html/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

Contains the base classes needed to format logging events to HTML.

11 | 12 | 13 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/filter/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

Contains base classes to the event filtering functionality of logback.

11 | 12 | 13 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/replay/fruitWithSubst.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ${fruitKey} 7 | 1.2 8 | 9 | 10 | -------------------------------------------------------------------------------- /logback-classic/src/main/java/ch/qos/logback/classic/pattern/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

Provides classes implementing format specifiers in conversion patterns.

11 | 12 | 13 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .settings 2 | target 3 | .classpath 4 | .factorypath 5 | .project 6 | .idea 7 | *~ 8 | *.iml 9 | *.ipr 10 | *.iws 11 | logback-classic/jdbc:hsqldb:mem:test.log 12 | logback-classic/jdbc:hsqldb:mem:test.properties 13 | logback-classic/jdbc:hsqldb:mem:test.script 14 | cobertura.ser 15 | # ignore files with pound characters 16 | \#*\# -------------------------------------------------------------------------------- /logback-classic-blackbox/src/test/blackboxInput/joran/roct/inclusion/topLevel0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /logback-classic/src/test/resources/README.txt: -------------------------------------------------------------------------------- 1 | 2 | Few test cases InitializationTest require the presence of logback.xml or logback-test.xml 3 | to be present in the classpath. However, this conflict with the logback-examples module. 4 | In particular, when users attempt to follow the manual by importing the project in an IDE 5 | such as Eclipse. -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/joran/sanity/Pair.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.core.joran.sanity; 2 | 3 | public class Pair { 4 | 5 | final public F first; 6 | final public S second; 7 | 8 | Pair(F first, S second) { 9 | this.first = first; 10 | this.second = second; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/conditional/ifSystem.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/event1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | XXX& 13 | 14 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/skip/badBegin1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/skip/badEnd1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/simpleEvaluator.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | m.matches(message) 4 | 5 | m 6 | ^hello.* 7 | false 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /logback-core-blackbox/src/test/blackboxInput/joran/conditional/ifSystem.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/spi/SequenceNumberGenerator.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.core.spi; 2 | 3 | /** 4 | * Generate sequence numbers 5 | * 6 | * @since 1.3.0 7 | * @author Ceki Gülcü 8 | */ 9 | public interface SequenceNumberGenerator extends ContextAware { 10 | 11 | long nextSequenceNumber(); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/conditional/if0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /logback-classic-blackbox/src/test/blackboxInput/joran/conditional/includedFile.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | %d %-5level %logger{35} - %msg %n 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/sequenceNumberGenerator.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /logback-core/src/test/input/compress1.original: -------------------------------------------------------------------------------- 1 | 2 | LOGBack: the generic, reliable, fast and flexible logging framework. 3 | 4 | Copyright (C) 1999-2006, QOS.ch 5 | 6 | This library is free software, you can redistribute it and/or modify it under 7 | the terms of the GNU Lesser General Public License as published by the Free 8 | Software Foundation. 9 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/configuration/containingConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /logback-classic-blackbox/src/test/blackboxInput/joran/jul/levelChangePropagator0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | true 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/issues/logback_1672.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /logback-core/src/test/java/ch/qos/logback/core/model/TopModel.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.core.model; 2 | 3 | public class TopModel extends Model { 4 | 5 | private static final long serialVersionUID = 6378962040610737208L; 6 | 7 | @Override 8 | protected TopModel makeNewInstance() { 9 | return new TopModel(); 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /logback-core-blackbox/src/test/blackboxInput/joran/conditional/if0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/skip/badBegin2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /logback-core-blackbox/src/test/blackboxInput/compress1.original: -------------------------------------------------------------------------------- 1 | 2 | LOGBack: the generic, reliable, fast and flexible logging framework. 3 | 4 | Copyright (C) 1999-2006, QOS.ch 5 | 6 | This library is free software, you can redistribute it and/or modify it under 7 | the terms of the GNU Lesser General Public License as published by the Free 8 | Software Foundation. 9 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/rootLevelByProperty.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/conditional/withoutJanino.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/pattern/kvp.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | %kvp %msg 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /logback-core/src/test/java/ch/qos/logback/core/joran/util/Orange.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.core.joran.util; 2 | 3 | public class Orange extends Citrus { 4 | 5 | public void setPericarp(Integer pericarp) { 6 | System.out.println("Orange.setPericarp"); 7 | super.setPericarp(pericarp); 8 | } 9 | 10 | @Override 11 | public void foo() { 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/spi/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

Contains core functionalities of logback, such as 11 | {@link ch.qos.logback.core.spi.AppenderAttachable} and 12 | {@link ch.qos.logback.core.spi.LifeCycle}.

13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/properties.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /logback-core-blackbox/src/test/blackboxInput/joran/conditional/ifNew.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/conditional/if_localProperty.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/appenderRefBeforeAppender.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/missingProperty.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Hello 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/simpleList.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/levelFilter.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | DENY 7 | ERROR 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/onConsoleRetro.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /logback-core-blackbox/src/test/blackboxInput/joran/conditional/if_localProperty.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/appenders/conf/logback-MDC.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | %-4relative [%thread] %-5level %X{testKey} - %msg%n 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/configuration/variableSubstitution2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ${USER_HOME}/myApp.log 5 | 6 | %kvp %msg%n 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/issues/logback_1678_shutdown.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/simpleLevel.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/model/processor/DenyAllModelFilter.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.core.model.processor; 2 | 3 | import ch.qos.logback.core.model.Model; 4 | import ch.qos.logback.core.spi.FilterReply; 5 | 6 | public class DenyAllModelFilter implements ModelFilter { 7 | 8 | @Override 9 | public FilterReply decide(Model model) { 10 | return FilterReply.DENY; 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/migrationFromLog4j/logback-trivial.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/model/processor/AllowAllModelFilter.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.core.model.processor; 2 | 3 | import ch.qos.logback.core.model.Model; 4 | import ch.qos.logback.core.spi.FilterReply; 5 | 6 | public class AllowAllModelFilter implements ModelFilter { 7 | 8 | @Override 9 | public FilterReply decide(Model model) { 10 | return FilterReply.ACCEPT; 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/skip/badEnd2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/unreferencedAppender1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/model/conditional/ThenModel.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.core.model.conditional; 2 | 3 | import ch.qos.logback.core.model.Model; 4 | 5 | public class ThenModel extends Model { 6 | 7 | private static final long serialVersionUID = -3264631638136701741L; 8 | 9 | @Override 10 | protected ThenModel makeNewInstance() { 11 | return new ThenModel(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/model/processor/ProcessorException.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.core.model.processor; 2 | 3 | public class ProcessorException extends Exception { 4 | private static final long serialVersionUID = 2245242609539650480L; 5 | 6 | public ProcessorException() { 7 | } 8 | 9 | public ProcessorException(final Throwable rootCause) { 10 | super(rootCause); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/net/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

Contains the base classes used by logback to log to remote 11 | destinations.

12 | 13 |

SMTPAppender logs events and sends an email when appropriate. 14 | SyslogAppender logs to a Syslog daemon.

15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/loggerLevelByProperty.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /logback-classic/src/test/java/ch/qos/logback/classic/net/testObjectBuilders/MinimalSer.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.classic.net.testObjectBuilders; 2 | 3 | import java.io.Serializable; 4 | 5 | public class MinimalSer implements Serializable { 6 | 7 | private static final long serialVersionUID = 2807646397580899815L; 8 | 9 | String message; 10 | 11 | public MinimalSer(int i) { 12 | message = Builder.MSG_PREFIX; 13 | } 14 | } -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/filters/basicConfiguration.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | %-4relative [%thread] %-5level %logger - %msg%n 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /logback-classic/src/main/java/ch/qos/logback/classic/model/ContextNameModel.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.classic.model; 2 | 3 | import ch.qos.logback.core.model.NamedModel; 4 | 5 | public class ContextNameModel extends NamedModel { 6 | 7 | private static final long serialVersionUID = -1635653921915985666L; 8 | 9 | @Override 10 | protected ContextNameModel makeNewInstance() { 11 | return new ContextNameModel(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/joran/spi/NewRuleProvider.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.core.joran.spi; 2 | 3 | import ch.qos.logback.core.model.processor.DefaultProcessor; 4 | 5 | public interface NewRuleProvider { 6 | 7 | void addPathActionAssociations(RuleStore rs); 8 | void addModelHandlerAssociations(DefaultProcessor defaultProcessor); 9 | void addModelAnalyserAssociations(DefaultProcessor defaultProcessor); 10 | } 11 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/pattern/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

Contains the base classes used by PatternLayout.

11 | 12 |

These classes lay the groundwork so that subclasses of PatternLayoutBase 13 | can use module-specific patterns. 14 |

15 | 16 | 17 | -------------------------------------------------------------------------------- /logback-classic/src/test/java/ch/qos/logback/classic/joran/sanity/ClassicTopModel.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.classic.joran.sanity; 2 | 3 | import ch.qos.logback.core.model.Model; 4 | 5 | public class ClassicTopModel extends Model { 6 | 7 | private static final long serialVersionUID = 6378962040610737208L; 8 | 9 | @Override 10 | protected ClassicTopModel makeNewInstance() { 11 | return new ClassicTopModel(); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/model/processor/ModelHandlerException.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.core.model.processor; 2 | 3 | public class ModelHandlerException extends Exception { 4 | 5 | private static final long serialVersionUID = -6486247349285796564L; 6 | 7 | public ModelHandlerException() { 8 | } 9 | 10 | public ModelHandlerException(final Throwable rootCause) { 11 | super(rootCause); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/onJoran/calculator/calculator3.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/boolex/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

Contains the EventEvaluator interface and subclasses.

11 | 12 |

EventEvaluator is subclassed by JaninoEventEvaluatorBase. 13 | Specific subclasses can be found in logback modules. 14 |

15 | 16 | 17 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/layouts/sampleLayoutConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /logback-classic/src/test/java/ch/qos/logback/classic/testUtil/GaussianDump.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.classic.testUtil; 2 | 3 | import org.junit.jupiter.api.Test; 4 | 5 | public class GaussianDump { 6 | 7 | @Test 8 | public void dump() { 9 | Gaussian g = new Gaussian(1000, 100); 10 | for (int i = 0; i < 5000; i++) { 11 | int r = (int) g.getGaussian(); 12 | System.out.println(r); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/implicitAction/nestedComplexCollectionWithoutClassAtrribute.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | blue 6 | hello 7 | world 8 | 9 | A 10 | 1 11 | 12 | 13 | B 14 | 2 15 | 16 | 17 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/mdc/simpleMDC.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | %X{first} %X{last} - %m%n 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/main/javadocHeaders.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | /** 4 | * 5 | */ 6 | true 7 | false 8 | (\s|\t)*/\*.*$ 9 | .*\*/(\s|\t)*$ 10 | 11 | -------------------------------------------------------------------------------- /logback-classic-blackbox/src/test/blackboxInput/joran/roct/scan_logback_474.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/autoConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | %msg%n" 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/simpleListWithImports.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /logback-core-blackbox/src/test/java/ch/qos/logback/core/blackbox/model/BlackboxTopModel.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.core.blackbox.model; 2 | 3 | import ch.qos.logback.core.model.Model; 4 | 5 | public class BlackboxTopModel extends Model { 6 | 7 | private static final long serialVersionUID = 6378962040610737208L; 8 | 9 | @Override 10 | protected BlackboxTopModel makeNewInstance() { 11 | return new BlackboxTopModel(); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/appenders/conf/logback-syslog.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ${syslogHost} 5 | ${facility} 6 | %-4relative [%thread] %-5level - %msg 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/configuration/contextName.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | myAppName 4 | 5 | 6 | 7 | %d %contextName [%t] %level %logger{36} -%kvp- %msg%n 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/configuration/includedConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | %d -%kvp- %m%n 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /logback-classic/src/test/java/ch/qos/logback/classic/issue/logback_1162/reproduce-bug.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | DD="dd" 6 | TOUCH="touch" 7 | 8 | TARGET_DIR=/home/ceki/logback/logback-classic/target/test-output/logback_issue_1162/ 9 | 10 | rm -rf $TARGET_DIR && \ 11 | mkdir -p $TARGET_DIR && \ 12 | $DD if=/dev/urandom of=$TARGET_DIR/info.log bs=1M count=50 && \ 13 | $TOUCH -d "24 hours ago" $TARGET_DIR/info.log 14 | #./gradlew run && \ 15 | #du -hs logs/* 16 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/filters/sampleFilterConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | %-4relative [%thread] %-5level %logger - %msg%n 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/replay/fruit2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | blue 7 | 8 | 9 | 10 | 11 | 12 | orange 13 | 1.2 14 | 15 | 16 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/configuration/contextScopedVariable.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | /opt/${noteId}/myApp.log 7 | 8 | %msg%n 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/configuration/variableSubstitution1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ${USER_HOME}/myApp.log 7 | 8 | %kvp %msg%n 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /logback-classic/src/test/resources/autoConfigAsResource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | %msg%n" 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/hook/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

Contains the shutdown hook functionality of logback, 11 | including the interface and base class for implementing 12 | hooks as well as some default implementations, such as 13 | {@link ch.qos.logback.core.hook.DelayingShutdownHook DelayingShutdownHook} 14 |

15 | 16 | 17 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/configuration/scan2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | %d [%thread] %-5level %logger{36} - %msg%n 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /logback-classic/src/test/resources/BOO_logback-test.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/appenderRefByProperty.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/encoderCharset.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | %d - %m%n 9 | UTF-8 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/configuration/variableSubstitution4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ${destination}/myApp.log 7 | 8 | %msg%n 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/main/licenseHeader.txt: -------------------------------------------------------------------------------- 1 | Logback: the reliable, generic, fast and flexible logging framework. 2 | Copyright (C) 1999-2015, QOS.ch. All rights reserved. 3 | 4 | This program and the accompanying materials are dual-licensed under 5 | either the terms of the Eclipse Public License v1.0 as published by 6 | the Eclipse Foundation 7 | 8 | or (per the licensee's choosing) 9 | 10 | under the terms of the GNU Lesser General Public License version 2.1 11 | as published by the Free Software Foundation. 12 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/socket/serverConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/property/CanonicalHostNamePropertyDefiner.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.core.property; 2 | 3 | import ch.qos.logback.core.PropertyDefinerBase; 4 | import ch.qos.logback.core.util.NetworkAddressUtil; 5 | 6 | public class CanonicalHostNamePropertyDefiner extends PropertyDefinerBase { 7 | 8 | @Override 9 | public String getPropertyValue() { 10 | return new NetworkAddressUtil(getContext()).safelyGetCanonicalLocalHostName(); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/appenders/countingConsole.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | %date [%thread] %-5level %logger - %msg%n 9 | 10 | 5 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/architecture/sample-config-1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/configuration/variableSubstitution3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ${USER_HOME}/myApp.log 7 | 8 | %kvp %msg%n 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/simple2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/appenders/db/append-via-jndi.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | java:comp/env/jdbc/logging 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /logback-classic/src/test/checkResults.sh: -------------------------------------------------------------------------------- 1 | # Use this script to check the output generated by 2 | # the generateLogsInSafeMode.sh script 3 | # Note that you can pass multiple stamps 4 | 5 | echo "File name $1" 6 | echo "run length $2" 7 | 8 | if [ $# -lt 3 ] 9 | then 10 | echo "Usage: checkResults.sh filename runLen stamp0 ... stampN" 11 | exit 1; 12 | fi 13 | 14 | FILENAME=$1 15 | LEN=$2 16 | 17 | shift 2 18 | 19 | echo Checking results... 20 | java ch.qos.logback.classic.multiJVM.Checker $LEN $FILENAME $* 21 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/conversionRule/conversionRuleTop0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | %sample - %msg 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/packagingDataDisabled.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/propsMissingRightCurlyBrace.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | %d ${ab - %m%n 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/layouts/mySampleConverterConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | %-6nano [%thread] %level - %msg%n 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/compatibility/layoutInsteadOfEncoder.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | target/test-output/layoutInsteadOfEncoder.log 5 | true 6 | 7 | 8 | %msg%n 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/conditional/nestedInclude.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/configuration/duplicate.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/appenders/conf/logback-Console.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | %-4relative [%thread] %-5level - %msg%n 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/appenders/conf/logback-async.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | myapp.log 4 | 5 | %logger{35} - %msg%n 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/layouts/log4jXMLLayout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | test.xml 4 | 5 | 6 | true 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Logback LICENSE 2 | --------------- 3 | 4 | Logback: the reliable, generic, fast and flexible logging framework. 5 | Copyright (C) 1999-2024, QOS.ch. All rights reserved. 6 | 7 | This program and the accompanying materials are dual-licensed under 8 | either the terms of the Eclipse Public License v1.0 as published by 9 | the Eclipse Foundation 10 | 11 | or (per the licensee's choosing) 12 | 13 | under the terms of the GNU Lesser General Public License version 2.1 14 | as published by the Free Software Foundation. 15 | 16 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/conversionRule/htmlLayout0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | %sample%msg 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/packagingDataEnabled.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/mdc/mdc1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | %-4r [%thread] %-5level C:%X{client} N:%X{number} - %msg%n 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/conversionRule/patternLayout0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | %sample - %msg 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /logback-core-blackbox/src/test/blackboxInput/joran/conditional/nestedInclude.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /logback-core/src/test/java/ch/qos/logback/core/util/FixedRateInvocationGate.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.core.util; 2 | 3 | public class FixedRateInvocationGate implements InvocationGate { 4 | 5 | int rate; 6 | int invocationCount = 0; 7 | 8 | public FixedRateInvocationGate(int rate) { 9 | this.rate = rate; 10 | } 11 | 12 | @Override 13 | public boolean isTooSoon(long currentTime) { 14 | if (invocationCount++ % rate != 0) 15 | return true; 16 | return false; 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/compatibility/immediateFlushInEncoder.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | target/test-output/layoutInsteadOfEncoder.log 5 | true 6 | 7 | 8 | ${immediateFlush} 9 | %msg%n 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /logback-access/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Logback LICENSE 2 | --------------- 3 | 4 | Logback: the reliable, generic, fast and flexible logging framework. 5 | Copyright (C) 1999-2015, QOS.ch. All rights reserved. 6 | 7 | This program and the accompanying materials are dual-licensed under 8 | either the terms of the Eclipse Public License v1.0 as published by 9 | the Eclipse Foundation 10 | 11 | or (per the licensee's choosing) 12 | 13 | under the terms of the GNU Lesser General Public License version 2.1 14 | as published by the Free Software Foundation. 15 | 16 | -------------------------------------------------------------------------------- /logback-classic-blackbox/src/test/blackboxInput/joran/conditional/conditionalIncludeInexistentFile.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | src/test/input/joran/conditional/inexistent.xml 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/pattern/replace0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | %replace(%msg){'\d{14,16}', 'XXXX'} 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/sift/zeroNesting.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | userid 10 | zeroDefault 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/syslog_LBCLASSIC_50.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 127.0.0.1 5 | LOCAL7 6 | 7 | %d %p [%t] %c::%m%n 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /logback-core/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Logback LICENSE 2 | --------------- 3 | 4 | Logback: the reliable, generic, fast and flexible logging framework. 5 | Copyright (C) 1999-2015, QOS.ch. All rights reserved. 6 | 7 | This program and the accompanying materials are dual-licensed under 8 | either the terms of the Eclipse Public License v1.0 as published by 9 | the Eclipse Foundation 10 | 11 | or (per the licensee's choosing) 12 | 13 | under the terms of the GNU Lesser General Public License version 2.1 14 | as published by the Free Software Foundation. 15 | 16 | -------------------------------------------------------------------------------- /logback-classic/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Logback LICENSE 2 | --------------- 3 | 4 | Logback: the reliable, generic, fast and flexible logging framework. 5 | Copyright (C) 1999-2015, QOS.ch. All rights reserved. 6 | 7 | This program and the accompanying materials are dual-licensed under 8 | either the terms of the Eclipse Public License v1.0 as published by 9 | the Eclipse Foundation 10 | 11 | or (per the licensee's choosing) 12 | 13 | under the terms of the GNU Lesser General Public License version 2.1 14 | as published by the Free Software Foundation. 15 | 16 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/pattern/replaceNewline.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | %replace(%msg){'(\n)', '$1${TAB}'} 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/unique.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | target/test-output/UNIK_${dayTimestamp}${UNIK_DIFF}log.txt 6 | false 7 | 8 | %-4relative [%thread] %-5level %logger{35} - %msg%n 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/conditional/nestedIf.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/filters/sampleTurboFilterConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | sample 5 | 6 | 7 | 8 | 9 | %-4relative [%thread] %-5level %logger - %msg%n 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/layouts/htmlLayoutConfig1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | %relative%thread%mdc%level%logger%msg 6 | 7 | 8 | test.html 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /logback-classic-blackbox/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Logback LICENSE 2 | --------------- 3 | 4 | Logback: the reliable, generic, fast and flexible logging framework. 5 | Copyright (C) 1999-2015, QOS.ch. All rights reserved. 6 | 7 | This program and the accompanying materials are dual-licensed under 8 | either the terms of the Eclipse Public License v1.0 as published by 9 | the Eclipse Foundation 10 | 11 | or (per the licensee's choosing) 12 | 13 | under the terms of the GNU Lesser General Public License version 2.1 14 | as published by the Free Software Foundation. 15 | 16 | -------------------------------------------------------------------------------- /logback-classic/src/main/java/ch/qos/logback/classic/net/server/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

Provides a robust logging server

8 |

The ServerSocket can 9 | be configured in any Joran configuration file, effectively turning 10 | any application that uses logback into a potential log message receiver 11 | for remote loggers. 12 |

13 | 14 | 15 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/conversionRule/conversionRuleIncluded.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | %sample - %msg 7 | 8 | 9 | 10 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /logback-core-blackbox/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Logback LICENSE 2 | --------------- 3 | 4 | Logback: the reliable, generic, fast and flexible logging framework. 5 | Copyright (C) 1999-2015, QOS.ch. All rights reserved. 6 | 7 | This program and the accompanying materials are dual-licensed under 8 | either the terms of the Eclipse Public License v1.0 as published by 9 | the Eclipse Foundation 10 | 11 | or (per the licensee's choosing) 12 | 13 | under the terms of the GNU Lesser General Public License version 2.1 14 | as published by the Free Software Foundation. 15 | 16 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/appenders/mail/mail2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ${smtpHost} 7 | ${to} 8 | ${from} 9 | %logger{20} - %m 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/layouts/sampleLayoutConfig2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | MyPrefix 8 | false 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/conversionRule/conversionRuleAtEnd.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | %sample - %msg 7 | 8 | 9 | 10 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/osgi/simple.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | target/test-output/osgi-test.log 8 | 9 | %d %level - %m%n 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/statusListener.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/appenders/conf/access/logback-DB.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.mysql.jdbc.Driver 6 | jdbc:mysql://localhost:3306/logbackdb 7 | logback 8 | logback 9 | 10 | true 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /logback-core-blackbox/src/test/blackboxInput/joran/conditional/nestedIf.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/filters/duplicateMessage.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | %date [%thread] %-5level %logger - %msg%n 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/layouts/exceptionEvaluatorConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | throwable != null && throwable instanceof chapters.layouts.TestException 5 | 6 | 7 | 8 | 9 | %msg%n%xEx{full, DISPLAY_EX_EVAL} 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/issues/logback_1674.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/turbo.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | %caller{4} %d %level - %m%n 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /logback-classic/src/test/java/ch/qos/logback/classic/issue/logback1159/LoggingError.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.classic.issue.logback1159; 2 | 3 | /** 4 | * Based error class to be thrown in a logging failsafe situation. I.e. any 5 | * unexpected error situations during logging (e.g. database access, I/O 6 | * failure) 7 | * 8 | */ 9 | public class LoggingError extends Error { 10 | 11 | private static final long serialVersionUID = -4881940499551760472L; 12 | 13 | public LoggingError(String msg, Throwable cause) { 14 | super(msg, cause); 15 | } 16 | 17 | } -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | *.sln merge=union 7 | *.csproj merge=union 8 | *.vbproj merge=union 9 | *.fsproj merge=union 10 | *.dbproj merge=union 11 | 12 | # Standard to msysgit 13 | *.doc diff=astextplain 14 | *.DOC diff=astextplain 15 | *.docx diff=astextplain 16 | *.DOCX diff=astextplain 17 | *.dot diff=astextplain 18 | *.DOT diff=astextplain 19 | *.pdf diff=astextplain 20 | *.PDF diff=astextplain 21 | *.rtf diff=astextplain 22 | *.RTF diff=astextplain 23 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/listAppender.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | TEST %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/configuration/scan1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | %d [%thread] %-5level %logger{36} - %msg%n 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /logback-classic/src/test/resources/recursiveInit.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | TEST %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/configuration/sample0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 8 | 9 | %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} -%kvp- %msg%n 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /logback-core/src/test/input/joran/implicitAction/nestedComplexCollection.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | blue 6 | hello 7 | world 8 | 9 | A 10 | 1 11 | 12 | 13 | B 14 | 2 15 | 16 | 17 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/sift/unsetDefaultValueProperty.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | userid 10 | 11 | 12 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/setClasspath.cmd: -------------------------------------------------------------------------------- 1 | 2 | @echo off 3 | REM This script will add logback jars to your classpath. 4 | 5 | set LB_HOME=c:/SET/THIS/PARAMETER/TO/THE/FOLDER/WHERE/YOU/INSTALLED/LOGBACK 6 | REM echo %LB_HOME% 7 | 8 | set CLASSPATH=%CLASSPATH%;%LB_HOME%/logback-classic-${project.version}.jar 9 | set CLASSPATH=%CLASSPATH%;%LB_HOME%/logback-core-${project.version}.jar 10 | set CLASSPATH=%CLASSPATH%;%LB_HOME%/logback-examples/logback-examples-${project.version}.jar 11 | set CLASSPATH=%CLASSPATH%;%LB_HOME%/logback-examples/lib/slf4j-api-${slf4j.version}.jar 12 | 13 | REM echo %CLASSPATH% 14 | -------------------------------------------------------------------------------- /logback-classic-blackbox/src/test/blackboxInput/joran/evaluatorFilter.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | myFilter 8 | DENY 9 | 10 | mdcEvaluator 11 | "to be ignored".equals(message) 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/propertiesConfigurator/smoke.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Logback: the reliable, generic, fast and flexible logging framework. 3 | # Copyright (C) 1999-2024, QOS.ch. All rights reserved. 4 | # 5 | # This program and the accompanying materials are dual-licensed under 6 | # either the terms of the Eclipse Public License v1.0 as published by 7 | # the Eclipse Foundation 8 | # 9 | # or (per the licensee's choosing) 10 | # 11 | # under the terms of the GNU Lesser General Public License version 2.1 12 | # as published by the Free Software Foundation. 13 | # 14 | 15 | logback.logger.com.toto = WARN -------------------------------------------------------------------------------- /logback-core/src/test/resources/net/ssl/README: -------------------------------------------------------------------------------- 1 | These resources are used by the SSL support tests in package 2 | ch.qos.logback.classic.net.ssl. 3 | 4 | The key.pem and cert.pem are a private key and corresponding self-signed 5 | certificate. The keystore.jks and keystore.p12 files are keystores of type 6 | JKS and PKCS12, respectively, containing the private key and self-signed 7 | certificates given in key.pem and cert.pem. The passphrase for both keystore 8 | files is "changeit". 9 | 10 | NOTE: The resources in this directory MUST be excluded from maven resource 11 | filtering, if it is enabled in the build. 12 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/setClasspath.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ## 4 | # This script will add logback jars to your classpath. 5 | ## 6 | 7 | LB_HOME=/SET/THIS/PARAMETER/TO/THE/DIRECTORY/WHERE/YOU/INSTALLED/LOGBACK 8 | 9 | CLASSPATH="${CLASSPATH}:${LB_HOME}/logback-classic-${project.version}.jar" 10 | CLASSPATH="${CLASSPATH}:${LB_HOME}/logback-core-${project.version}.jar" 11 | CLASSPATH="${CLASSPATH}:${LB_HOME}/logback-examples/logback-examples-${project.version}.jar" 12 | CLASSPATH="${CLASSPATH}:${LB_HOME}/logback-examples/lib/slf4j-api-${slf4j.version}.jar" 13 | 14 | export CLASSPATH 15 | 16 | echo $CLASSPATH 17 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/asyncAppender_list_after.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 256 9 | false 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/asyncAppender_list_first.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 256 11 | false 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/integration/db/oracle11g-with-driver.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | oracle.jdbc.OracleDriver 8 | jdbc:oracle:thin:@localhost:1521:orcl 9 | SCOTT 10 | SCOTT 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/rolling/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

Implements various file rolling policies.

11 | 12 |

The {@link ch.qos.logback.core.rolling.RollingFileAppender} class 13 | serves as the linchpin of this package. Its behaviour is 14 | controlled by two subcomponents of type {@link 15 | ch.qos.logback.core.rolling.RollingPolicy} and {@link 16 | ch.qos.logback.core.rolling.TriggeringPolicy}. 17 |

18 | 19 | 20 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/appenders/db/append-with-drivermanager.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | ${driverClass} 8 | ${url} 9 | ${user} 10 | ${password} 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/configuration/sample1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 8 | 9 | %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} -%kvp- %msg%n 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/ignore.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | (marker.contains("IGNORE")) 8 | 9 | 10 | 11 | 12 | %date %level - %m%n%ex{full, IGNORE_EVAL} 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/filters/levelFilterConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | INFO 7 | ACCEPT 8 | DENY 9 | 10 | 11 | %-4relative [%thread] %-5level %logger{30} - %msg%n 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/layouts/callerEvaluatorConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | logger.contains("chapters.layouts") && message.contains("who calls thee") 6 | 7 | 8 | 9 | 10 | 11 | %-4relative [%thread] %-5level - %msg%n%caller{2, DISPLAY_CALLER_EVAL} 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/appenders/conf/logback-JMSQueue.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | org.apache.activemq.jndi.ActiveMQInitialContextFactory 6 | 7 | tcp://localhost:61616 8 | 9 | ConnectionFactory 10 | 11 | MyQueue 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/appenders/conf/logback-JMSTopic.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | org.apache.activemq.jndi.ActiveMQInitialContextFactory 6 | 7 | tcp://localhost:61616 8 | 9 | ConnectionFactory 10 | 11 | MyTopic 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/integration/db/mysql-with-driver.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | com.mysql.jdbc.Driver 8 | jdbc:mysql://127.0.0.1:3306/test 9 | test 10 | test 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/sift/lingering.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | linger 10 | linger 11 | 12 | 13 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/sift/smoke.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | userid 10 | smokeDefault 11 | 12 | 13 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /logback-core/src/test/java/ch/qos/logback/core/joran/util/Citrus.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.core.joran.util; 2 | 3 | public abstract class Citrus { 4 | 5 | public static final String PRECARP_PROPERTY_NAME = "pericarp"; 6 | public static final String PREFIX_PROPERTY_NAME = "prefix"; 7 | 8 | @SuppressWarnings("unused") 9 | private T pericarp; 10 | 11 | String prefix; 12 | 13 | public void setPericarp(T pericarp) { 14 | this.pericarp = pericarp; 15 | } 16 | 17 | public void setPrefix(String prefix) { 18 | this.prefix = prefix; 19 | } 20 | 21 | public abstract void foo(); 22 | 23 | } 24 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/appenders/db/append-toMySQL-with-driverManager.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | com.mysql.jdbc.Driver 8 | jdbc:mysql://host_name:3306/datebase_name 9 | username 10 | password 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/sift/completeCycle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | cycle 10 | cycleDefault 11 | 12 | 13 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/turbo2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | seb 7 | ceki 8 | 9 | 10 | 11 | 12 | %d %level - %m%n 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/integration/db/oracle10g-with-driver.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | oracle.jdbc.OracleDriver 8 | jdbc:oracle:thin:@localhost:1521:xe 9 | test 10 | test 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/integration/db/postgresql-with-driver.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | org.postgresql.Driver 8 | jdbc:postgresql://localhost:5432/test 9 | test 10 | test 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /logback-classic/src/test/java/ch/qos/logback/classic/pattern/XThrowableHandlingConverter.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.classic.pattern; 2 | 3 | import ch.qos.logback.classic.spi.ILoggingEvent; 4 | 5 | import static org.junit.jupiter.api.Assertions.assertNull; 6 | 7 | public class XThrowableHandlingConverter extends ThrowableHandlingConverter { 8 | 9 | void assertNoNext() { 10 | assertNull(this.getNext(), "has next"); 11 | } 12 | 13 | @Override 14 | public String convert(ILoggingEvent event) { 15 | if (event.getMessage().contains("assert")) 16 | assertNoNext(); 17 | return ""; 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/appenders/conf/logback-SMTP.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | %-4relative [%thread] %-5level %class - %msg%n 6 | 7 | sender_email@host.ch 8 | mail.host.ch 9 | 10 | Last Event: %-10logger %nopex 11 | 12 | recipient_email@host.ch 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/configuration/sample4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} -%kvp- %msg%n 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /logback-classic-blackbox/src/test/blackboxInput/joran/issues/logback_1678.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ... 7 | 8 | 9 | 10 | ... 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/integration/db/sqlserver-with-driver.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | com.microsoft.sqlserver.jdbc.SQLServerDriver 8 | jdbc:sqlserver://localhost:1987;databaseName=logback; 9 | logback 10 | logback 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /logback-core-blackbox/src/test/java/module-info.java: -------------------------------------------------------------------------------- 1 | module ch.qos.logback.core.blackbox { 2 | 3 | requires ch.qos.logback.core; 4 | 5 | requires org.junit.jupiter.api; 6 | requires org.junit.jupiter.engine; 7 | 8 | requires janino; 9 | requires commons.compiler; 10 | 11 | requires org.fusesource.jansi; 12 | 13 | requires org.tukaani.xz; 14 | 15 | exports ch.qos.logback.core.blackbox.boolex; 16 | exports ch.qos.logback.core.blackbox.joran.conditional; 17 | exports ch.qos.logback.core.blackbox.joran; 18 | exports ch.qos.logback.core.blackbox.appender; 19 | exports ch.qos.logback.core.blackbox.rolling.helper; 20 | 21 | } -------------------------------------------------------------------------------- /logback-classic/src/test/java/ch/qos/logback/classic/spi/LogbackServiceProviderTest.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.classic.spi; 2 | 3 | import ch.qos.logback.classic.LoggerContext; 4 | import org.junit.jupiter.api.Test; 5 | 6 | import static org.junit.jupiter.api.Assertions.assertTrue; 7 | 8 | public class LogbackServiceProviderTest { 9 | 10 | LogbackServiceProvider provider = new LogbackServiceProvider(); 11 | 12 | @Test 13 | public void testContrxtStart() { 14 | provider.initialize(); 15 | LoggerContext loggerFactory = (LoggerContext) provider.getLoggerFactory(); 16 | 17 | assertTrue(loggerFactory.isStarted()); 18 | 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/filters/thresholdFilterConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | INFO 9 | 10 | 11 | %-4relative [%thread] %-5level %logger{30} - %msg%n 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/appenders/conf/access/logback-SMTP.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | %h%l%u%t%r%s%b 7 | 8 | 9 | 10 | 11 | url1.jsp 12 | directory/url2.html 13 | 14 | 15 | sender_email@host.com 16 | mail.domain.com 17 | recipient_email@host.com 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/appenders/mail/customBufferSize.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | TESTING: %logger{20} - %m 5 | 6 | ${smtpHost} 7 | ${to} 8 | ${from} 9 | 10 | 11 | 12 | 13 | 1 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /logback-classic-blackbox/src/test/blackboxInput/joran/issues/logback_1673bis.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/issues/lbcore193.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | %date %level [%thread] %logger(%file:%line\) 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/sift/defaultLayoutRule.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | userid 6 | default 7 | 8 | 9 | 11 | 12 | %level %msg 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/statusListenerWithImports.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/spi/BasicSequenceNumberGenerator.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.core.spi; 2 | 3 | import java.util.concurrent.atomic.AtomicLong; 4 | 5 | /** 6 | * 7 | * A very simple {@link SequenceNumberGenerator} based on an {@link AtomicLong} 8 | * variable. 9 | * 10 | * @author Ceki Gülcü 11 | * @since 1.3.0 12 | */ 13 | public class BasicSequenceNumberGenerator extends ContextAwareBase implements SequenceNumberGenerator { 14 | 15 | private final AtomicLong atomicLong = new AtomicLong(); 16 | 17 | @Override 18 | public long nextSequenceNumber() { 19 | return atomicLong.incrementAndGet(); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/roct/scan 1.groovy: -------------------------------------------------------------------------------- 1 | /** 2 | * Logback: the reliable, generic, fast and flexible logging framework. 3 | * Copyright (C) 1999-2015, QOS.ch. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 2.1 12 | * as published by the Free Software Foundation. 13 | */ 14 | import static ch.qos.logback.classic.Level.ERROR 15 | 16 | scan("5 millisecond") 17 | root(ERROR) 18 | 19 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/filters/basicEventEvaluator.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | message.contains("billing") 7 | 8 | NEUTRAL 9 | DENY 10 | 11 | 12 | %-4relative [%thread] %-5level %logger - %msg%n 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /logback-classic-blackbox/src/test/blackboxInput/joran/evaluatorFilterWithImports.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | myFilter 10 | DENY 11 | 12 | mdcEvaluator 13 | "to be ignored".equals(message) 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/issue/lbcore26.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | target/test-output/lbcore26.log 4 | 5 | 6 | target/test-output/lbcore26.%d{yyyy-MM-dd}.log 7 | 30 8 | 9 | 10 | 11 | %date [%thread] %-5level %logger - %msg%n 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /logback-classic/src/test/java/ch/qos/logback/classic/control/ScenarioAction.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Logback: the reliable, generic, fast and flexible logging framework. 3 | * Copyright (C) 1999-2015, QOS.ch. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 2.1 12 | * as published by the Free Software Foundation. 13 | */ 14 | package ch.qos.logback.classic.control; 15 | 16 | public class ScenarioAction { 17 | 18 | } 19 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/receivers/socket/appender3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | ${port} 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/appenders/mail/mail1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ADDRESS-OF-YOUR-SMTP-HOST 5 | EMAIL-DESTINATION 6 | ANOTHER_EMAIL_DESTINATION 7 | SENDER-EMAIL 8 | %logger{20} - %m 9 | 10 | %date %-5level %logger - %message%n 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/onJoran/implicit/implicit1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 11 | 12 | 13 | 14 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/appenders/conf/logback-HtmlToConsole.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | path_to_StyleFile.css 8 | 9 | %-4relative [%thread] %-5level - %msg%n 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/appenders/conf/logback-fileAppender.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | testFile.log 5 | true 6 | 7 | true 8 | 10 | 11 | %-4relative [%thread] %-5level %logger{35} - %msg%n 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/configuration/insertFromJNDI.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | ${appName} 6 | 7 | 8 | 10 | 11 | %d %contextName %level -%kvp- %msg %logger{50}%n 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/dateWithLocale.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | %d{yyyy-MM-dd_HH_mm_ss, Australia/Perth, en-AU} - %m%n 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/html/CssBuilder.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Logback: the reliable, generic, fast and flexible logging framework. 3 | * Copyright (C) 1999-2015, QOS.ch. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 2.1 12 | * as published by the Free Software Foundation. 13 | */ 14 | package ch.qos.logback.core.html; 15 | 16 | public interface CssBuilder { 17 | 18 | void addCss(StringBuilder sbuf); 19 | 20 | } 21 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/joran/node/ComponentNode.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Logback: the reliable, generic, fast and flexible logging framework. 3 | * Copyright (C) 1999-2015, QOS.ch. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 2.1 12 | * as published by the Free Software Foundation. 13 | */ 14 | package ch.qos.logback.core.joran.node; 15 | 16 | public class ComponentNode { 17 | 18 | String classStr; 19 | 20 | } 21 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/appenders/db/append-toMySQL-with-datasource-and-pooling.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | com.mysql.jdbc.Driver 7 | jdbc:mysql://localhost:3306/logbackdb 8 | logback 9 | logback 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /logback-classic/src/IBUNDLE-META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Archiver-Version: Plexus Archiver 3 | Created-By: Apache Maven 4 | Built-By: ceki 5 | Build-Jdk: 1.6.0_16 6 | Bundle-Description: iBundle 7 | Bundle-Version: 0.1 8 | Bundle-Activator: integrator.Activator 9 | Implementation-Title: iBundle 10 | Bundle-ManifestVersion: 2 11 | Bundle-SymbolicName: iBundle 12 | Bundle-Name: abundle 13 | Bundle-RequiredExecutionEnvironment: J2SE-1.3 14 | Export-Package: apack 15 | Import-Package: org.osgi.framework, 16 | org.slf4j;version=1.7, 17 | org.slf4j.event; 18 | ch.qos.logback.core, 19 | ch.qos.logback.core.joran.spi, 20 | ch.qos.logback.core.util, 21 | ch.qos.logback.classic, 22 | ch.qos.logback.classic.joran 23 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/issues/logback_1162.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ${output_dir}/info.log 5 | 6 | ${output_dir}/info.%d{yyyy-MM-dd}.log.gz 7 | 8 | 9 | %date %level [%thread] %logger{40} - %msg%n 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/sift/multipleNesting.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | userid 10 | multipleDefault 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /logback-classic/src/test/java/ch/qos/logback/classic/issue/lbclassic180/logback.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | %d{HH:mm:ss.SSS}%logger{1}%htmlEscapedMessage 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/configuration/onConsoleStatusListener.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 11 | 12 | %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/roct/scan_perf.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | target/test-output/testFile.log 8 | true 9 | 10 | 11 | %-4relative [%thread] %-5level %logger{35} - %msg%n 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/sift/timeout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | timeout 10 | smoke 11 | 12 | 30 seconds 13 | 14 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/model/processor/AllowModelFilter.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.core.model.processor; 2 | 3 | import ch.qos.logback.core.model.Model; 4 | import ch.qos.logback.core.spi.FilterReply; 5 | 6 | public class AllowModelFilter implements ModelFilter { 7 | 8 | final Class allowedModelType; 9 | 10 | AllowModelFilter(Class allowedType) { 11 | this.allowedModelType = allowedType; 12 | } 13 | 14 | @Override 15 | public FilterReply decide(Model model) { 16 | 17 | if (model.getClass() == allowedModelType) { 18 | return FilterReply.ACCEPT; 19 | } 20 | 21 | return FilterReply.NEUTRAL; 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/model/processor/DenyModelFilter.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.core.model.processor; 2 | 3 | import ch.qos.logback.core.model.Model; 4 | import ch.qos.logback.core.spi.FilterReply; 5 | 6 | public class DenyModelFilter implements ModelFilter { 7 | 8 | final Class deniedModelType; 9 | 10 | DenyModelFilter(Class deniedModelType) { 11 | this.deniedModelType = deniedModelType; 12 | } 13 | 14 | @Override 15 | public FilterReply decide(Model model) { 16 | 17 | if (model.getClass() == deniedModelType) { 18 | return FilterReply.DENY; 19 | } 20 | 21 | return FilterReply.NEUTRAL; 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/util/InvocationGate.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.core.util; 2 | 3 | public interface InvocationGate { 4 | 5 | final long TIME_UNAVAILABLE = -1; 6 | 7 | /** 8 | * The caller of this method can decide to skip further work if the returned 9 | * value is true. 10 | * 11 | * Implementations should be able to give a reasonable answer even if current 12 | * time date is unavailable. 13 | * 14 | * @param currentTime can be TIME_UNAVAILABLE (-1) to signal that time is not 15 | * available 16 | * @return if true, caller should skip further work 17 | */ 18 | public abstract boolean isTooSoon(long currentTime); 19 | 20 | } -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/configuration/sample3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} -%kvp- %msg%n 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/sift/maxAppenderCount.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | max 9 | default 10 | 11 | 5 12 | 13 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /logback-classic/src/test/java/ch/qos/logback/classic/pattern/XCompositeConverter.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.classic.pattern; 2 | 3 | import ch.qos.logback.classic.spi.ILoggingEvent; 4 | import ch.qos.logback.core.pattern.CompositeConverter; 5 | 6 | import static org.junit.jupiter.api.Assertions.assertNull; 7 | 8 | public class XCompositeConverter extends CompositeConverter { 9 | 10 | void assertNoNext() { 11 | assertNull( this.getNext(), "converter instance has next element"); 12 | } 13 | 14 | @Override 15 | protected String transform(ILoggingEvent event, String in) { 16 | if (event.getMessage().contains("assert")) 17 | assertNoNext(); 18 | return ""; 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/spi/DeferredProcessingAware.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Logback: the reliable, generic, fast and flexible logging framework. 3 | * Copyright (C) 1999-2015, QOS.ch. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 2.1 12 | * as published by the Free Software Foundation. 13 | */ 14 | package ch.qos.logback.core.spi; 15 | 16 | public interface DeferredProcessingAware { 17 | 18 | void prepareForDeferredProcessing(); 19 | } 20 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/appenders/db/append-toMySQL-with-datasource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | ${serverName} 9 | ${port} 10 | ${dbName} 11 | ${user} 12 | ${pass} 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/configuration/multiple.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | myApp.log 4 | 6 | 7 | %date %level [%thread] %logger{10} [%file:%line] %msg%n 8 | 9 | 10 | 11 | 12 | 13 | %msg%n 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/html/IThrowableRenderer.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Logback: the reliable, generic, fast and flexible logging framework. 3 | * Copyright (C) 1999-2015, QOS.ch. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 2.1 12 | * as published by the Free Software Foundation. 13 | */ 14 | package ch.qos.logback.core.html; 15 | 16 | public interface IThrowableRenderer { 17 | 18 | void render(StringBuilder sbuf, E event); 19 | 20 | } 21 | -------------------------------------------------------------------------------- /logback-classic/src/main/java/ch/qos/logback/classic/net/SocketAcceptor.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Logback: the reliable, generic, fast and flexible logging framework. 3 | * Copyright (C) 1999-2015, QOS.ch. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 2.1 12 | * as published by the Free Software Foundation. 13 | */ 14 | package ch.qos.logback.classic.net; 15 | 16 | class SocketAcceptor extends Thread { 17 | 18 | @Override 19 | public void run() { 20 | 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/rolling/basic.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | ${randomOutputDir}z${testId} 6 | 8 | 9 | ${randomOutputDir}${testId}-%d{yyyy-MM-dd_HH_mm_ss} 10 | 11 | 12 | 13 | %msg%n 14 | false 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/socket/clientConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | 10 | 11 | 12 | 13 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /logback-classic/src/test/java/ch/qos/logback/classic/LevelTest.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.classic; 2 | 3 | import org.junit.jupiter.api.Test; 4 | 5 | import static org.junit.jupiter.api.Assertions.assertEquals; 6 | 7 | public class LevelTest { 8 | 9 | @Test 10 | public void smoke() { 11 | assertEquals(Level.TRACE, Level.toLevel("TRACE")); 12 | assertEquals(Level.DEBUG, Level.toLevel("DEBUG")); 13 | assertEquals(Level.INFO, Level.toLevel("INFO")); 14 | assertEquals(Level.WARN, Level.toLevel("WARN")); 15 | assertEquals(Level.ERROR, Level.toLevel("ERROR")); 16 | } 17 | 18 | @Test 19 | public void withSpaceSuffix() { 20 | assertEquals(Level.INFO, Level.toLevel("INFO ")); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/appenders/socket/ssl/server.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | %d{HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/receivers/socket/appender1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | ${host} 11 | ${port} 12 | 10000 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /logback-classic/src/test/java/ch/qos/logback/classic/testUtil/Gaussian.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.classic.testUtil; 2 | 3 | import java.util.Random; 4 | 5 | public class Gaussian { 6 | 7 | Random random; 8 | 9 | double mean; 10 | double variance; 11 | 12 | public Gaussian(double mean, double variance) { 13 | this.random = new Random(); 14 | this.mean = mean; 15 | this.variance = variance; 16 | } 17 | 18 | public Gaussian(long seed, double mean, double variance) { 19 | this.random = new Random(seed); 20 | this.mean = mean; 21 | this.variance = variance; 22 | } 23 | 24 | public double getGaussian() { 25 | return mean + random.nextGaussian() * variance; 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/callerData.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | m.matches(message) 8 | 9 | m 10 | ^hello.* 11 | false 12 | 13 | 14 | 15 | 17 | 18 | %caller{4, helloEval}%d %level - %m%n 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/sift/logback_416.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | userid 13 | smoke 14 | 15 | 16 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/sift/propertyPropagation.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | localProperty 9 | default 10 | 11 | 12 | 14 | 15 | ${X}%msg 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/rolling/LengthCounter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Logback: the reliable, generic, fast and flexible logging framework. 3 | * Copyright (C) 1999-2024, QOS.ch. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 2.1 12 | * as published by the Free Software Foundation. 13 | */ 14 | 15 | package ch.qos.logback.core.rolling; 16 | 17 | public interface LengthCounter { 18 | 19 | void add(long len); 20 | long getLength(); 21 | void reset(); 22 | } 23 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/sift/fileAppender.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | collision 10 | collisionDefault 11 | 12 | 13 | 14 | ${DIR_PREFIX}/log-${collision}.txt 15 | 16 | %logger{35} - %msg%n 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /logback-core/src/main/java/ch/qos/logback/core/pattern/util/IEscapeUtil.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Logback: the reliable, generic, fast and flexible logging framework. 3 | * Copyright (C) 1999-2015, QOS.ch. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 2.1 12 | * as published by the Free Software Foundation. 13 | */ 14 | package ch.qos.logback.core.pattern.util; 15 | 16 | public interface IEscapeUtil { 17 | 18 | void escape(String additionalEscapeChars, StringBuffer buf, char next, int pointer); 19 | } -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/appenders/conf/logback-SMTPWithHtml.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | %relative%thread%mdc%level%class%msg 6 | 7 | 8 | sender_email@host.ch 9 | mail.host.ch 10 | 11 | Last Event: %-10logger %nopex 12 | 13 | recipient_email@host.ch 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/turboDynamicThreshold.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | userId 8 | ERROR 9 | 10 | user1 11 | INFO 12 | 13 | 14 | user2 15 | TRACE 16 | 17 | 18 | 19 | 20 | 21 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /logback-classic/src/test/java/ch/qos/logback/classic/issue/lbcore243/Common.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Logback: the reliable, generic, fast and flexible logging framework. 3 | * Copyright (C) 1999-2015, QOS.ch. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 2.1 12 | * as published by the Free Software Foundation. 13 | */ 14 | package ch.qos.logback.classic.issue.lbcore243; 15 | 16 | public class Common { 17 | 18 | // How many times should we try to log: 19 | static int loop = 800 * 1000; 20 | 21 | } 22 | -------------------------------------------------------------------------------- /logback-examples/src/main/resources/chapters/configuration/additivityFlag.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | foo.log 5 | 6 | 7 | %date %level [%thread] %logger{10} [%file : %line] -%kvp- %msg%n 8 | 9 | 10 | 11 | 12 | 13 | 14 | %kvp %msg%n 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /logback-classic-blackbox/src/test/blackboxInput/joran/callerData.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | hello 10 | 11 | 12 | 13 | 14 | %caller{4, helloEval}%d %level - %m%n 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/include/topLevel0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /logback-core/src/test/java/ch/qos/logback/core/joran/action/TopElementAction.java: -------------------------------------------------------------------------------- 1 | package ch.qos.logback.core.joran.action; 2 | 3 | import org.xml.sax.Attributes; 4 | 5 | import ch.qos.logback.core.joran.spi.SaxEventInterpretationContext; 6 | import ch.qos.logback.core.model.Model; 7 | import ch.qos.logback.core.model.TopModel; 8 | 9 | /** 10 | * Add a Model instance at the top of the InterpretationContext stack 11 | * 12 | * @author Ceki Gulcu 13 | */ 14 | public class TopElementAction extends BaseModelAction { 15 | 16 | @Override 17 | protected Model buildCurrentModel(SaxEventInterpretationContext interpretationContext, String name, 18 | Attributes attributes) { 19 | TopModel topModel = new TopModel(); 20 | return topModel; 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/rolling/timeAndSizeWithoutIntegerToken.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | ${randomOutputDir}z${testId} 6 | 7 | ${randomOutputDir}${testId}-%d{yyyy-MM-dd_HH_mm_ss} 8 | 10000 9 | 10 | 11 | %msg%n 12 | false 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /logback-classic/src/test/input/joran/rolling/totalSizeCapSmallerThanMaxFileSize.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | ${randomOutputDir}z${testId} 6 | 7 | ${randomOutputDir}${testId}-%d{yyyy-MM-dd_HH_mm_ss}.%i 8 | 100 9 | 4 10 | 10 11 | 12 | 13 | %msg%n 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | --------------------------------------------------------------------------------