Re: [PR] Feature/2.x/enumerating and exposing named patters [logging-log4j2]

2025-07-09 Thread via GitHub
ppkarwasz commented on code in PR #3789: URL: https://github.com/apache/logging-log4j2/pull/3789#discussion_r2196109011 ## log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/DatePatternConverter.java: ## @@ -109,40 +109,19 @@ private static String readPattern(@Nullab

Re: [PR] Respect `log4j1.compatibility` for programmatic configuration [logging-log4j2]

2025-07-09 Thread via GitHub
github-actions[bot] commented on PR #3812: URL: https://github.com/apache/logging-log4j2/pull/3812#issuecomment-3054240664 Job Requested goals Build Tool Version Build Outcome Build Scan® build-

Re: [PR] Feature/2.x/enumerating and exposing named patters [logging-log4j2]

2025-07-09 Thread via GitHub
vy commented on code in PR #3789: URL: https://github.com/apache/logging-log4j2/pull/3789#discussion_r2196059297 ## log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/DatePatternConverter.java: ## @@ -109,40 +109,19 @@ private static String readPattern(@Nullable fina

Re: [PR] Feature/2.x/enumerating and exposing named patters [logging-log4j2]

2025-07-09 Thread via GitHub
ppkarwasz commented on PR #3789: URL: https://github.com/apache/logging-log4j2/pull/3789#issuecomment-3053765302 > In its current state, deprecated formatters are an island – no programmatic connections from anywhere. We can safely delete them, yet keep the legacy formatters configuration k

Re: [I] ThrowablePatternConverter deprecated constructors refer to a package private constructor [logging-log4j2]

2025-07-09 Thread via GitHub
vy closed issue #3809: ThrowablePatternConverter deprecated constructors refer to a package private constructor URL: https://github.com/apache/logging-log4j2/issues/3809 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the

Re: [I] ThrowablePatternConverter deprecated constructors refer to a package private constructor [logging-log4j2]

2025-07-09 Thread via GitHub
vy commented on issue #3809: URL: https://github.com/apache/logging-log4j2/issues/3809#issuecomment-3053684326 @snicoll, submitted spring-projects/spring-boot#46372, closing this issue. Please feel free to comment and/or re-open if you have further concerns. -- This is an automated messa

Re: [I] ThrowablePatternConverter deprecated constructors refer to a package private constructor [logging-log4j2]

2025-07-09 Thread via GitHub
ppkarwasz commented on issue #3809: URL: https://github.com/apache/logging-log4j2/issues/3809#issuecomment-3053462603 Hi @vy, The implementation looks good overall. However, you should also override [`LogEventPatternConverter#handlesThrowable()`](https://logging.apache.org/log4j/2.x/

Re: [PR] Feature/2.x/enumerating and exposing named patters [logging-log4j2]

2025-07-09 Thread via GitHub
vy commented on PR #3789: URL: https://github.com/apache/logging-log4j2/pull/3789#issuecomment-3053423599 > > @ashr123, no, absolutely not. They should not be used anywhere in Log4j. In `2.25.0` we put great effort into deprecating them – see [the release notes](https://logging.apache.org/l

[PR] Respect `log4j1.compatibility` for programmatic configuration [logging-log4j2]

2025-07-09 Thread via GitHub
jhl221123 opened a new pull request, #3812: URL: https://github.com/apache/logging-log4j2/pull/3812 This PR addresses issue #3667 by adding guard logic to methods in `Category` and `LogManager` that can modify the configuration. These changes ensure that programmatic configuration using the

Re: [PR] Add ThreadContextStack injection capability [logging-log4j2]

2025-07-09 Thread via GitHub
github-actions[bot] commented on PR #3810: URL: https://github.com/apache/logging-log4j2/pull/3810#issuecomment-3053174257 Job Requested goals Build Tool Version Build Outcome Build Scan® build-

Re: [PR] Feature/2.x/enumerating and exposing named patters [logging-log4j2]

2025-07-09 Thread via GitHub
ppkarwasz commented on PR #3789: URL: https://github.com/apache/logging-log4j2/pull/3789#issuecomment-3053034368 > > @vy should I use `FixedDateFormat.FixedFormat#getPattern` in case of `InstantPatternFormatter.LEGACY_FORMATTERS_ENABLED` is `true`? > > @ashr123, no, absolutely not. Th

Re: [I] ThrowablePatternConverter deprecated constructors refer to a package private constructor [logging-log4j2]

2025-07-09 Thread via GitHub
vy commented on issue #3809: URL: https://github.com/apache/logging-log4j2/issues/3809#issuecomment-3052824395 > > could you use composition instead? > > I am not sure we can use composition considering we're overriding `ThrowablePatternConverter#format`. Perhaps you can have a look

Re: [PR] Feature/2.x/enumerating and exposing named patters [logging-log4j2]

2025-07-09 Thread via GitHub
ashr123 commented on PR #3789: URL: https://github.com/apache/logging-log4j2/pull/3789#issuecomment-3052709896 @vy so what should I do? use `InstantPatternFormatter.LEGACY_FORMATTERS_ENABLED` as I did before? (which @ppkarwasz doesn't like) -- This is an automated message from the Apache

Re: [PR] Feature/2.x/enumerating and exposing named patters [logging-log4j2]

2025-07-09 Thread via GitHub
vy commented on PR #3789: URL: https://github.com/apache/logging-log4j2/pull/3789#issuecomment-3052700892 > @vy should I use `FixedDateFormat.FixedFormat#getPattern` in case of `InstantPatternFormatter.LEGACY_FORMATTERS_ENABLED` is `true`? @ashr123, no, absolutely not. They should not

Re: [PR] Feature/2.x/enumerating and exposing named patters [logging-log4j2]

2025-07-09 Thread via GitHub
ashr123 commented on PR #3789: URL: https://github.com/apache/logging-log4j2/pull/3789#issuecomment-3052681117 @ppkarwasz can you add the JavaDoc yourself? I'm using another computer and I have a bit of trouble regarding the signature -- This is an automated message from the Apache Git Se

Re: [PR] Feature/2.x/enumerating and exposing named patters [logging-log4j2]

2025-07-09 Thread via GitHub
ashr123 commented on code in PR #3789: URL: https://github.com/apache/logging-log4j2/pull/3789#discussion_r2194983126 ## log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/NamedInstantPattern.java: ## @@ -0,0 +1,78 @@ +/* + * Licensed to the Apache Software Foundatio

Re: [PR] Feature/2.x/enumerating and exposing named patters [logging-log4j2]

2025-07-09 Thread via GitHub
ashr123 commented on code in PR #3789: URL: https://github.com/apache/logging-log4j2/pull/3789#discussion_r2194969525 ## log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/NamedDatePattern.java: ## @@ -0,0 +1,114 @@ +/* + * Licensed to the Apache Software Foundation

Re: [PR] Feature/2.x/enumerating and exposing named patters [logging-log4j2]

2025-07-09 Thread via GitHub
ppkarwasz commented on code in PR #3789: URL: https://github.com/apache/logging-log4j2/pull/3789#discussion_r2194968468 ## log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/NamedInstantPattern.java: ## @@ -0,0 +1,78 @@ +/* + * Licensed to the Apache Software Foundat

Re: [PR] Feature/2.x/enumerating and exposing named patters [logging-log4j2]

2025-07-09 Thread via GitHub
ppkarwasz commented on code in PR #3789: URL: https://github.com/apache/logging-log4j2/pull/3789#discussion_r2194962920 ## log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/NamedDatePattern.java: ## @@ -0,0 +1,114 @@ +/* + * Licensed to the Apache Software Foundatio

Re: [PR] Feature/2.x/enumerating and exposing named patters [logging-log4j2]

2025-07-09 Thread via GitHub
ashr123 commented on code in PR #3789: URL: https://github.com/apache/logging-log4j2/pull/3789#discussion_r2194921907 ## log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/DatePatternConverter.java: ## @@ -109,84 +109,11 @@ private static String readPattern(@Nullable

Re: [PR] Feature/2.x/enumerating and exposing named patters [logging-log4j2]

2025-07-09 Thread via GitHub
ppkarwasz commented on code in PR #3789: URL: https://github.com/apache/logging-log4j2/pull/3789#discussion_r2194912642 ## log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/DatePatternConverter.java: ## @@ -109,84 +109,11 @@ private static String readPattern(@Nullab

Re: [PR] Feature/2.x/enumerating and exposing named patters [logging-log4j2]

2025-07-09 Thread via GitHub
ashr123 commented on PR #3789: URL: https://github.com/apache/logging-log4j2/pull/3789#issuecomment-3052379119 @vy should I use `FixedDateFormat.FixedFormat` in case of `InstantPatternFormatter.LEGACY_FORMATTERS_ENABLED` is `true`? -- This is an automated message from the Apache Git Servi

Re: [PR] Feature/2.x/enumerating and exposing named patters [logging-log4j2]

2025-07-09 Thread via GitHub
vy commented on PR #3789: URL: https://github.com/apache/logging-log4j2/pull/3789#issuecomment-3052340939 > @vy ok, no problem, what else should I do for this PR to be approved? Nothing more, AFAICT. (Note that the changelog needs to be updated after the rename.) -- This is an auto

Re: [PR] Feature/2.x/enumerating and exposing named patters [logging-log4j2]

2025-07-09 Thread via GitHub
ashr123 commented on PR #3789: URL: https://github.com/apache/logging-log4j2/pull/3789#issuecomment-3052324132 @vy ok, no problem, what else should I do for this PR to be approved? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitH

Re: [PR] Feature/2.x/enumerating and exposing named patters [logging-log4j2]

2025-07-09 Thread via GitHub
vy commented on PR #3789: URL: https://github.com/apache/logging-log4j2/pull/3789#issuecomment-3052319657 > > 2. Shall we rename the class from `NamedDatePattern` to `NamedInstantPattern` in line with our recent wordsmithing efforts in _"instant formatting"_? > > That could be a sens

Re: [PR] Feature/2.x/enumerating and exposing named patters [logging-log4j2]

2025-07-09 Thread via GitHub
ashr123 commented on code in PR #3789: URL: https://github.com/apache/logging-log4j2/pull/3789#discussion_r2194755794 ## log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/DatePatternConverter.java: ## @@ -109,84 +109,11 @@ private static String readPattern(@Nullable

Re: [PR] Feature/2.x/enumerating and exposing named patters [logging-log4j2]

2025-07-09 Thread via GitHub
ppkarwasz commented on code in PR #3789: URL: https://github.com/apache/logging-log4j2/pull/3789#discussion_r2194740184 ## log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/DatePatternConverter.java: ## @@ -109,84 +109,11 @@ private static String readPattern(@Nullab

Re: [I] v3.1.0 is breaking rolling logfiles usage (logging-log4net)

2025-07-09 Thread via GitHub
maedula commented on issue #250: URL: https://github.com/apache/logging-log4net/issues/250#issuecomment-3052120352 @FreeAndNil latest preview is fixing my reported issue. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and us

[PR] Add ThreadContextStack injection capability [logging-log4j2]

2025-07-09 Thread via GitHub
yybmion opened a new pull request, #3810: URL: https://github.com/apache/logging-log4j2/pull/3810 Implements custom `ThreadContextStack` injection capability as requested in #1507. Users can now inject custom `ThreadContextStack` implementations just like `ThreadContextMap`. #

Re: [PR] Feature/2.x/enumerating and exposing named patters [logging-log4j2]

2025-07-09 Thread via GitHub
ashr123 commented on code in PR #3789: URL: https://github.com/apache/logging-log4j2/pull/3789#discussion_r2194372738 ## log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/DatePatternConverter.java: ## @@ -109,84 +109,11 @@ private static String readPattern(@Nullable

Re: [PR] Feature/2.x/enumerating and exposing named patters [logging-log4j2]

2025-07-09 Thread via GitHub
ppkarwasz commented on code in PR #3789: URL: https://github.com/apache/logging-log4j2/pull/3789#discussion_r2194345347 ## log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/DatePatternConverter.java: ## @@ -109,84 +109,11 @@ private static String readPattern(@Nullab

Re: [I] Replace field injection with setter injection in `3.x` [logging-log4j2]

2025-07-09 Thread via GitHub
ppkarwasz commented on issue #2769: URL: https://github.com/apache/logging-log4j2/issues/2769#issuecomment-3051462889 Hi @snicoll, > > If you’d prefer to keep it package-private, you can suppress the warning using: > > I saw the suggestion, I don't want to do that as it's repo

Re: [I] Replace field injection with setter injection in `3.x` [logging-log4j2]

2025-07-09 Thread via GitHub
snicoll commented on issue #2769: URL: https://github.com/apache/logging-log4j2/issues/2769#issuecomment-3051413436 > If you’d prefer to keep it package-private, you can suppress the warning using: I saw the suggestion, I don't want to do that as it's reporting the problem down the