1
0
Commit Graph

741 Commits

Author SHA1 Message Date
Gary Gregory
d082a5dc2a Bump commons-parent from 59 to 64 2023-11-19 08:41:24 -05:00
Gary Gregory
159f30cb8b [LOGGING-185] Fix failing tests #180 2023-11-18 19:37:49 -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
Gary Gregory
e94276a98b Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-logging.git 2023-11-05 09:31:49 -05:00
Gary Gregory
dd5be155fe Make package private class final 2023-11-05 09:31:38 -05:00
Gary Gregory
a3f9d2b3b8 Add support for Log4j API and SLF4J #177 2023-11-03 11:22:31 -04: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
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