1
0
Commit Graph

227 Commits

Author SHA1 Message Date
Gary Gregory
d67eefa4e2 Sort imports
Whitespace
2024-05-11 11:28:09 -04:00
Gary Gregory
e37750947d Deprecate org.apache.commons.logging.LogSource.jdk14IsAvailable 2024-05-11 11:18:47 -04:00
Gary Gregory
0adb67eb20 Use Java 5's String#contains(CharSequence) 2024-03-22 09:48:14 -04:00
Elliotte Rusty Harold
3b2daae483 cure generics warnings (#213) 2024-03-17 10:09:17 -04:00
Gary Gregory
c1e4fefc56 Update from Logj 1 to the Log4j 2 API compatibility layer (#231)
* Update from Logj1 to the 2 API compatibility layer

* Update from Logj1 to the 2 API compatibility layer
2024-03-16 18:30:40 -04:00
Gary Gregory
3467620e45 Terminate file with a blank line 2024-02-10 11:45:28 -05:00
Gary Gregory
70b95a0ce1 Terminate file with a blank line 2024-02-10 11:44:46 -05:00
Gary Gregory
4adb3c8380 Terminate file with a blank line 2024-02-10 11:44:41 -05:00
Gary Gregory
f2b9df5d13 Terminate file with a blank line 2024-02-10 11:44:05 -05:00
Gary Gregory
013dadc879 Legibility 2024-02-10 10:54:00 -05:00
Gary Gregory
3ca327b7c2 Remove variable assignment just before returning it
Use final
2024-02-04 13:57:53 -05:00
Gary Gregory
69f9599ec8 Use *= 2024-01-15 09:26:59 -05:00
Gary Gregory
bf1956afb8 Javadoc 2023-12-17 14:40:52 -05:00
Gary Gregory
4570499764 Javadoc 2023-12-14 09:49:24 -05:00
Gary Gregory
3b9ee41f5f Javadoc spelling 2023-11-26 15:54:46 -05:00
Gary Gregory
087b3cba93 Use Checkstyle ParenPad 2023-11-26 15:07:37 -05:00
Gary Gregory
e8a558b708 Spelling and version 1.3.0 2023-11-26 13:51:14 -05:00
Gary Gregory
a1c174c086 Use try-with-resources 2023-11-26 10:18:14 -05:00
Gary Gregory
6400cd0bc0 Fix generics compiler warnings 2023-11-26 10:15:02 -05:00
Gary Gregory
f80e102dde Remove extra blank lines 2023-11-26 10:08:31 -05:00
Gary Gregory
b7bca0f8cc Remove trailing whitespace 2023-11-26 10:03:58 -05:00
Gary Gregory
a28caba95b Spelling 2023-11-25 12:33:33 -05:00
Gary Gregory
5c371bcbbd Organize imports 2023-11-25 11:08:11 -05:00
Piotr P. Karwasz
35427e2ce7 Disable Lumberjack and Log4j 1.x and document it (#182)
This PR removes Lumberjack and Log4j 1.x for the automatic logging
backend discovery procedure.

The updated procedure is documented in the guide.

This closes LOGGING-173 and LOGGING-188.
2023-11-25 11:06:46 -05:00
Gary Gregory
e4d94ff51e Spelling 2023-11-20 19:22:47 -05:00
Gary Gregory
6b11d8ab2e Spelling in comments 2023-11-20 09:58:59 -05:00
Gary Gregory
2039eeba6f Fix compiler warnings 2023-11-19 16:33:27 -05:00
Gary Gregory
a06ae06925 Format nits 2023-11-19 16:24:55 -05:00
Gary Gregory
a39a6d1234 Format nits 2023-11-19 16:21:18 -05:00
Gary Gregory
12ae9e6324 Remove obsolete comments
Move static block
2023-11-19 09:51:16 -05:00
Gary Gregory
9b69ba8a04 Adjust test assertions for previous commit 2023-11-19 09:24:05 -05:00
Gary Gregory
2521602a8a Sort members 2023-11-19 09:02:31 -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
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
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
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
32c8bd6257 Javadoc: Better wording 2023-10-19 10:50:29 -04:00
Gary Gregory
bc3c5461a4 Camel-case parameter and internal names
Spelling
2023-10-19 08:37:35 -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
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
260d5e2177 Update call deprecated in Java 9 2023-10-02 12:05:29 -04: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