1
0
Commit Graph

148 Commits

Author SHA1 Message Date
Gary Gregory
98e559141d Better local names 2023-11-19 09:41:32 -05:00
Gary Gregory
1f3ec507c4 No need to use a FQCN for String here 2023-11-19 09:39:24 -05:00
Gary Gregory
33af4b50dc Better comment and name 2023-11-19 09:38:27 -05:00
Gary Gregory
8ae9ca7740 Remove redundant final (PMD) 2023-11-19 09:38:16 -05:00
Gary Gregory
b7a456d06e Remove redundant final (PMD) 2023-11-19 09:36:19 -05:00
Gary Gregory
f03afeb1d9 Remove redundant final (PMD) 2023-11-19 09:35:18 -05:00
Gary Gregory
f0059b24d2 Use compact array declaration 2023-11-19 09:24:17 -05:00
Gary Gregory
523fe7a6c5 Sort members 2023-11-19 09:02:18 -05:00
Gary Gregory
b10322e41e Use Checkstyle sortStaticImportsAlphabetically 2023-11-19 09:01:36 -05:00
Piotr P. Karwasz
6ad06e9074 LOGGING-185: Fix failing tests (#180)
* Fix names of deployed artifacts

We remove the obsolete `finalName` property and fix the Maven Failsafe
executions.

* Fix failing tests

* Reenable integration tests

* Disable SecurityManager tests on Java 21

* Simplify build workflow

* Set `fail-fast` to false

* Fix NPEs caused by `String.trim()`

* Span a different JVM per test case
2023-11-18 19:36:11 -05:00
Gary Gregory
c5b3edd506 Javadoc 2023-11-11 16:15:49 -05:00
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
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
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
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
ecce923148 Use modern Map API 2023-07-07 00:20:09 -04:00
Gary Gregory
5995c6c6e7 Javadoc typos 2023-05-19 08:52:13 -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
32891becf5 Use String.isEmpty() 2022-10-02 13:39:32 -04:00
Gary Gregory
e7bac9a257 Normalize Javadoc spelling 2022-06-15 08:20:20 -04:00