John Blum
babf7163f2
Update Copyright.
...
Set year from 2017 to present.
2022-02-10 16:37:58 -08:00
John Blum
2d748475c4
Replace use of java.util.Optional with tenary operator in DelegatingAppender.getAppender() method.
2022-02-10 16:37:57 -08:00
John Blum
39a751b637
Add additional logic around Logback logging provider (system) cleanup.
2022-02-10 16:37:57 -08:00
John Blum
5f9e9e75a6
Switch Java Library declared dependencies that should be exposed in the Java Library (Spring module) API to 'api' scope.
2022-02-10 16:37:57 -08:00
John Blum
c986789e87
Remove application of maven-pom-editor Gradle build script from SBDG Gradle Spring modules.
2022-01-27 16:58:04 -08:00
John Blum
3640e1c2a8
Adapt all SBDG module Gradle build files to Gradle 7.3.
2022-01-27 16:55:53 -08:00
John Blum
20b8c2d172
Cleanup all unsafe and unchecked compiler warnings.
2020-07-23 14:57:01 -07:00
John Blum
8447eaad10
Update Copyright to 2020.
2020-02-19 23:04:23 -08:00
John Blum
ce295d235f
Add method to resolve an Appender from a Logger by name and type.
...
Add Javadoc to the addAppender(:Logger, :Appender) method.
Refactor addAppender(..) method to lookup the added (registered) Appender from the Logger as verification that the Appender was successfully added.
Re-arrange private utility methods.
Resolves gh-73.
2020-02-19 19:18:08 -08:00
John Blum
f5918498c9
Add CompositeAppender.compose(:Appender[]) and CompositeAppender.compose(:Iterable<Appender>) methods to compose an array or Iterable of Appenders.
...
Resolves gh-73.
2020-02-19 19:12:18 -08:00
John Blum
7fe4c41fc9
Add StringAppender.Builder.applyTo(:org.slf4j.Logger) method.
...
Resolves gh-73.
2020-02-19 19:10:32 -08:00
John Blum
06a1add71b
Add utility method to reset the initialized, dirty state of the SLF4J, Logback logging provider/system.
...
Resolves gh-73.
2020-02-19 19:07:56 -08:00
John Blum
ab03a7c3c1
Change internally created StringBuffer and StringBuilder StringAppenderWrapper implementations used by the StringAppender from Singletons to Prototypes.
...
Fixes bug in StringAppender that maintained stale Log messages in the buffers of the wrappers between tests.
Resolves gh-73.
2020-02-19 19:07:56 -08:00
John Blum
007e4db373
Add Function-based converter to convert from SLF4J Loggers to Logback Loggers.
...
Resolves gh-73.
2020-02-14 15:19:14 -08:00
John Blum
348d981b3a
Add newlines to separate log events/messages appended to the String.
...
Resolves gh-73.
2020-02-13 00:11:50 -08:00
John Blum
e4613a1fcc
Change 'spring-geode-starter-test' from a testRuntime dependency to testCompile.
...
Resolves gh-73.
2020-02-12 08:45:54 -08:00
John Blum
4d84136f01
Add LogbackSupport class to invoke the SLF4J and Logback APIs.
...
Resolves gh-73.
2020-02-12 08:38:57 -08:00
John Blum
5cabe1662d
Add StringAppender Logback Appender implementation to capture log messages in-memory appended to a String.
...
Resolve gh-73.
2020-02-12 08:14:02 -08:00
John Blum
bbe8ff65e0
Add CompositeAppender Logback Appender implementation to compose multiple Appenders as a single Appender.
...
Resolve gh-73.
2020-02-12 08:14:02 -08:00
John Blum
99cff21c17
Add default name for DelegatingAppender.
...
Resolves gh-73.
2020-02-11 19:25:04 -08:00
John Blum
a87194cb87
Change IllegalStateException message in AbstractLoggingIntegrationTests.configureLogging() method to properly reflect intent.
...
Call TestAppender.stop() in addition to clear() in the test tearDown() method.
Resolves gh-73.
2020-02-10 20:23:30 -08:00
John Blum
278ce513c0
Set (as default) root Logger log level to 'INFO'.
...
Resolves gh-73.
2020-02-10 20:23:25 -08:00
John Blum
0002534140
Add Unit and Integration Tests for the 'spring-geode-starter-logging' module log configuration and logging provider (i.e. SLF4J/Logback) extensions.
...
Resolves gh-73.
2020-02-10 20:23:19 -08:00
John Blum
85d630c34e
Refactor the 'spring-geode-starter-logging' module provided logback.xml file to use templates (includes).
...
Moved the declared Appenders and Loggers from logback.xml to a new logback-include.xml file making it easier to compose Logback (XML) configuration files using templates, or includes. This is particularly useful during Integration Testing where logback-test.xml files can be composed with different templates/includes.
Resolves gh-73.
2020-02-10 20:23:13 -08:00
John Blum
269b60bdc6
Provide DelegatingAppender class to allow SLF4J logging provider Appenders to be injected [programmatically] at configuration/runtime.
...
This is very useful in Integration Tests where the test class needs to assert log statements in infrastructure, system, framework or application code.
Resolves gh-73.
2020-02-10 20:23:07 -08:00
John Blum
0e3ac202a7
Explicitly declare Logback as the logging provider.
...
Add the 'spring-geode-starter-test' module as a testRuntime dependency in order to write Unit and Integration Tests for this 'spring-geode-starter-logging' module.
Resolves gh-73.
2020-02-10 20:23:02 -08:00
John Blum
c023a22455
Add new 'spring-geode-starter-logging' and 'spring-gemfire-starter-logging' modules.
...
The new modules enable logging output to be rendered for both Apache Geode & Pivotal GemFire given the right configuration now that the SDG @EnableLogging annotaiton is effectively deprecated since the corresponding GemFire/Geode properties (i.e. gemfire.log-level) no longer have any effect.
Resolves gh-73.
2020-02-10 20:22:56 -08:00