Piotr P. Karwasz
946711e0a6
Add support for Log4j API and SLF4J ( #177 )
...
The logging backends supported by the default `LogFactoryImpl` have all
reached their end-of-life (except JUL and `SimpleLog`). Third-generation
logging backends, such as Log4j Core, support multiple logger contexts
per application and therefore can not be handled by the simplified
caching mechanism in `LogFactoryImpl`.
This PR introduces two new `LogFactory` implementations,
`Log4j2LogFactory` and `Slf4jLogFactory`, that forward messages to the
Log4j API and SLF4J.
During initialization the three existing factories are checked in the
following order:
1. the `Log4j2LogFactory` has highest priority, since the Log4j API can
faithfully transmit messages of type `Object`,
2. the `Slf4jLogFactory` is the next choice. However, if the
Log4j-to-SLF4J bridge is present we log directly through SLF4J
instead of the Log4j API.
3. the legacy `LogFactoryImpl` has lowest priority.
2023-11-03 11:19:14 -04:00
Gary Gregory
b7f50da2aa
Normalize setter Javadoc
2023-10-31 07:10:27 -04:00
Gary Gregory
ba145fb114
Normalize getter Javadoc
2023-10-31 06:51:30 -04:00
Gary Gregory
28c175b8c8
Fix spelling
2023-10-31 06:27:13 -04:00
Gary Gregory
6167752d52
Normalize spelling to US English
2023-10-31 06:23:46 -04:00
Gary Gregory
cdb9ef5ce4
Remove unused parameter from private method
2023-10-22 07:50:59 -04:00
Gary Gregory
5cbd34c654
Format tweaks
2023-10-22 07:50:05 -04:00
Gary Gregory
23206cb098
Use Java 1.4 API
2023-10-22 07:48:38 -04:00
Gary Gregory
98ac644aaf
Fix component name references
2023-10-19 10:53:50 -04:00
Gary Gregory
32c8bd6257
Javadoc: Better wording
2023-10-19 10:50:29 -04:00
Gary Gregory
9c50425bfc
Javadoc: Fix spelling
2023-10-19 10:35:59 -04:00
Gary Gregory
bc3c5461a4
Camel-case parameter and internal names
...
Spelling
2023-10-19 08:37:35 -04:00
Gary Gregory
73582f2c71
Better internal names
...
Javadoc
2023-10-19 07:37:24 -04:00
Gary Gregory
65b28b9186
Fix possible NPEs in LogFactoryImpl
2023-10-19 07:21:16 -04:00
Gary Gregory
245211c4bd
Use final
...
Use compact array notation
Remove trailing whitespace
2023-10-18 17:06:46 -04:00
Gary Gregory
174f40d168
Organize imports
2023-10-18 17:05:12 -04:00
Gary Gregory
0b4d31d127
Sort members
2023-10-18 17:04:00 -04:00
Gary Gregory
58ec3139c2
Fix Javadoc (Java 11 on Windows)
...
[ERROR] C:\Users\ggregory\git\a\commons-logging\src\main\java\org\apache\commons\logging\LogFactory.java:892:
error: header used out of sequence: <H4>
[ERROR] * <h4>ClassLoader conflicts</h4>
[ERROR] ^
2023-10-18 16:59:30 -04:00
Piotr P. Karwasz
ca2cdfee81
[LOGGING-186] Replace custom code with ServiceLoader call ( #171 )
...
* Replace custom code with `ServiceLoader` call
* Files should end with an empty line
* Files should end with an empty line
* Comment empty block
* Comment empty block
---------
Co-authored-by: Gary Gregory <garydgregory@users.noreply.github.com >
2023-10-18 16:47:48 -04:00
Gary Gregory
42ad2ae0b6
Fix Javadoc warnings and errors
2023-10-10 15:22:39 -04:00
Christian Grobmeier
75a09ea648
fixed project name
2023-10-09 21:12:18 +00:00
Christian Grobmeier
a9b34977f4
Merge pull request #159 from SingingBush/deprecate_avalon_and_lumberjack
...
mark loggers for Avalon and Lumberjack as deprecated
2023-10-09 23:02:12 +02:00
Christian Grobmeier
a115c97bdd
improved wording
2023-10-09 23:01:01 +02:00
Christian Grobmeier
b846931a11
improved wording
2023-10-09 23:00:35 +02:00
Christian Grobmeier
529a0a9cea
improved wording
2023-10-09 23:00:10 +02:00
Gary Gregory
260d5e2177
Update call deprecated in Java 9
2023-10-02 12:05:29 -04:00
Bruno P. Kinoshita
176a1462a8
Fix link to FAQ, thanks to Ed Brannin
2023-09-29 23:00:04 +02:00
singingbush
01144cc86f
mark loggers for Avalon and Lumberjack as deprecated
2023-09-02 20:47:17 +01:00
Alex Herbert
acd4893d89
Introduce end-of-line normalization
2023-09-02 13:37:42 +01:00
Gary Gregory
c628268427
Revert "Bump commons-parent from 59 to 61"
...
This reverts commit 4663b90b28 .
2023-08-30 14:19:33 -04:00
Gary Gregory
4663b90b28
Bump commons-parent from 59 to 61
2023-08-30 14:12:37 -04:00
Gary Gregory
58b1369ac1
Normalize array type declarations
2023-08-23 08:48:30 -04:00
Gary Gregory
eee5bef7f0
Fix formatting
2023-08-22 11:00:58 -04:00
Gary Gregory
f674d8229e
Fix formatting
2023-08-22 10:14:54 -04:00
Gary Gregory
ca47bbc0b4
Bump commons-parent from 58 to 59
2023-07-28 13:29:30 -04:00
Gary Gregory
ecce923148
Use modern Map API
2023-07-07 00:20:09 -04:00
Gary Gregory
f98acb3c28
[StepSecurity] ci: Harden GitHub Actions #145
2023-06-24 17:10:02 -04:00
Gary Gregory
922588f99d
Bump commons-parent from 57 to 58
2023-05-25 16:18:30 -04:00
Gary Gregory
5995c6c6e7
Javadoc typos
2023-05-19 08:52:13 -04:00
Gary Gregory
e684e574a6
Bump commons-parent from 56 to 57 #143
2023-04-28 09:01:03 -04:00
Gary Gregory
869eaa18df
Format: "catch(" -> "catch ("
2023-04-18 10:56:16 -04:00
Gary Gregory
19ced996a0
Javadoc/Comments: Remove extra "whitespace"
2023-03-25 09:36:35 -04:00
Gary Gregory
d376d31286
Javadoc: Convert package.html to package-info.java
2023-03-19 15:52:49 -04:00
Gary Gregory
8018905e7e
Javadoc: Convert package.html to package-info.java
2023-03-19 15:52:42 -04:00
Gary Gregory
6888105f9e
Use StringBuilder instead of StringBuffer for internal processing
2023-03-04 09:18:20 -05:00
Gary Gregory
6864fc88ab
POM project name should contain "Apache" prefix
2023-01-15 07:46:25 -05:00
dependabot[bot]
74a82eebeb
Bump maven-checkstyle-plugin from 3.2.0 to 3.2.1
...
Bumps [maven-checkstyle-plugin](https://github.com/apache/maven-checkstyle-plugin ) from 3.2.0 to 3.2.1.
- [Release notes](https://github.com/apache/maven-checkstyle-plugin/releases )
- [Commits](https://github.com/apache/maven-checkstyle-plugin/compare/maven-checkstyle-plugin-3.2.0...maven-checkstyle-plugin-3.2.1 )
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-checkstyle-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-13 21:30:18 +01:00
dependabot[bot]
72c688ad40
Bump maven-dependency-plugin from 3.4.0 to 3.5.0
...
Bumps [maven-dependency-plugin](https://github.com/apache/maven-dependency-plugin ) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/apache/maven-dependency-plugin/releases )
- [Commits](https://github.com/apache/maven-dependency-plugin/compare/maven-dependency-plugin-3.4.0...maven-dependency-plugin-3.5.0 )
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-dependency-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-13 21:28:42 +01:00
Gary Gregory
0a2317f008
Bump commons-parent from 55 to 56 #126
2023-01-03 14:07:20 -05:00
Gary Gregory
cb67ea239e
Spelling
2023-01-01 11:13:50 -05:00