Fwd: [DISCUSS] Quo Vadis Maven Site

2022-11-16 Thread Gary Gregory
Just FYI from the Maven list regarding site generation.

-- Forwarded message -
From: Tamás Cservenák 
Date: Wed, Nov 16, 2022, 05:19
Subject: [DISCUSS] Quo Vadis Maven Site
To: Maven Developers List 


Howdy,

This is really just a brainstorming thread I'd like to spin, regarding
Maven Site stuff.

Again, the message is in wiki
https://cwiki.apache.org/confluence/display/MAVEN/Quo+Vadis+Maven+Site

But I would like to make discussion happen here on dev ML.

Thanks
T


Docs?

2022-11-16 Thread Alex Winfield
 Where should I look for the docs?

All of the examples point to dead links:
https://logging.apache.org/log4net/release/config-examples.html

Sample code online doesn't appear to actually work (%aspnet-context appears
to be parsed as just %a, with "spnet-context" as a static string).

I can see that there definitely is something for handling asp.net contexts (
https://git-wip-us.apache.org/repos/asf?p=logging-log4net.git;a=blob_plain;f=src/log4net/Layout/Pattern/AspNetContextPatternConverter.cs;hb=HEAD),
but I have no idea why it isn't working or what I need to do to enable it.

I'm just very confused on what format properties are available, which may
have been renamed over time, etc

I was able to get what I wanted to work using middleware, but it does feel
weird that there's so little documentation available.  I'd appreciate any
links that could help (I feel like this property is probably already
available and not need an entire middleware just to hook into log4net lol)

Also, log4net-u...@logging.apache.org appears to not have anyone watching
answering questions.  If it isn't being used, it should probably be removed
from the docs as a valid way to get help.


Broken build

2022-11-16 Thread Ralph Goers
I haven’t run a build in a while and looking at the recent commits I am not 
sure what is causing this, but some change since 2.19.0 is now causing the 
following build failures in log4j-core.

Ralph

[ERROR] Failures: 
[ERROR]   LoggerTest.basicFlow:90 expected: <2> but was: <4>
[ERROR]   LoggerTest.builder:77 Incorrect message 1
Expected: " DEBUG 
org.apache.logging.log4j.LoggerTest.builder(LoggerTest.java:73) Hello"
 but: was "ENTER[ FLOW ] TRACE Enter doFoo(a=1, b=2)"
[ERROR]   LoggerTest.debug:209 expected: <1> but was: <0>
[ERROR]   LoggerTest.debugWithParmsAndThrowable:230 expected: <1> but was: <2>
[ERROR]   LoggerTest.flowTracingMessage:104 Incorrect Entry
Expected: a string starting with "ENTER[ FLOW ] TRACE Enter"
 but: was "THROWING[ EXCEPTION ] ERROR Throwing 
java.lang.IllegalArgumentException: Test Exception
at org.apache.logging.log4j.LoggerTest.throwing(LoggerTest.java:596)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at 
org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:727)
at 
org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
at 
org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
at 
org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156)
at 
org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147)
at 
org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)
at 
org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)
at 
org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93)
at 
org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
at 
org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
at 
org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
at 
org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
at 
org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92)
at 
org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86)
at 
org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:217)
at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at 
org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:213)
at 
org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:138)
at 
org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:68)
at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
at 
org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
at 
org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService$ExclusiveTask.compute(ForkJoinPoolHierarchicalTestExecutorService.java:185)
at java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:189)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at 
java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at 
java.util.concurrent.ForkJoinWorkerThr

Re: Broken build

2022-11-16 Thread Matt Sicker
Is this a consistent failure or random?

> On Nov 16, 2022, at 3:42 PM, Ralph Goers  wrote:
> 
> I haven’t run a build in a while and looking at the recent commits I am not 
> sure what is causing this, but some change since 2.19.0 is now causing the 
> following build failures in log4j-core.
> 
> Ralph
> 
> [ERROR] Failures: 
> [ERROR]   LoggerTest.basicFlow:90 expected: <2> but was: <4>
> [ERROR]   LoggerTest.builder:77 Incorrect message 1
> Expected: " DEBUG 
> org.apache.logging.log4j.LoggerTest.builder(LoggerTest.java:73) Hello"
> but: was "ENTER[ FLOW ] TRACE Enter doFoo(a=1, b=2)"
> [ERROR]   LoggerTest.debug:209 expected: <1> but was: <0>
> [ERROR]   LoggerTest.debugWithParmsAndThrowable:230 expected: <1> but was: <2>
> [ERROR]   LoggerTest.flowTracingMessage:104 Incorrect Entry
> Expected: a string starting with "ENTER[ FLOW ] TRACE Enter"
> but: was "THROWING[ EXCEPTION ] ERROR Throwing 
> java.lang.IllegalArgumentException: Test Exception
> at org.apache.logging.log4j.LoggerTest.throwing(LoggerTest.java:596)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at 
> org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:727)
> at 
> org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
> at 
> org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
> at 
> org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156)
> at 
> org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147)
> at 
> org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)
> at 
> org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)
> at 
> org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93)
> at 
> org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
> at 
> org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
> at 
> org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
> at 
> org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
> at 
> org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92)
> at 
> org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86)
> at 
> org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:217)
> at 
> org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
> at 
> org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:213)
> at 
> org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:138)
> at 
> org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:68)
> at 
> org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
> at 
> org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
> at 
> org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
> at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
> at 
> org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
> at 
> org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
> at 
> org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
> at 
> org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
> at 
> org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService$ExclusiveTask.compute(ForkJoinPoolHierarchicalTestExecutorService.java:185)
> at java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:189)
> at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
> at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
> at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
> at 
> java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
> 

Re: Docs?

2022-11-16 Thread Davyd McColl
Ralph, I'd appreciate any help here. Seems there's a permissions error or 
something - sdk docs links return a 403.


-d


On 16 November 2022 23:22:26 Alex Winfield <7nil...@gmail.com> wrote:


 Where should I look for the docs?

All of the examples point to dead links:
https://logging.apache.org/log4net/release/config-examples.html

Sample code online doesn't appear to actually work (%aspnet-context appears
to be parsed as just %a, with "spnet-context" as a static string).

I can see that there definitely is something for handling asp.net contexts (
https://git-wip-us.apache.org/repos/asf?p=logging-log4net.git;a=blob_plain;f=src/log4net/Layout/Pattern/AspNetContextPatternConverter.cs;hb=HEAD),
but I have no idea why it isn't working or what I need to do to enable it.

I'm just very confused on what format properties are available, which may
have been renamed over time, etc

I was able to get what I wanted to work using middleware, but it does feel
weird that there's so little documentation available.  I'd appreciate any
links that could help (I feel like this property is probably already
available and not need an entire middleware just to hook into log4net lol)

Also, log4net-u...@logging.apache.org appears to not have anyone watching
answering questions.  If it isn't being used, it should probably be removed
from the docs as a valid way to get help.


Re: Docs?

2022-11-16 Thread Ralph Goers
Looking at .htaccess it seems everything is directed to log4net-2.0.15.
In log4net-2.0.15/release I see 

sdk -> log4net-2.0.8/release/sdk

I think that symlink is wrong and should be ../../log4net-2.0.8/release/sdk - 
assuming of course you want 2.0.15 to reference something in 2.0.8.

Ralph

> On Nov 16, 2022, at 9:08 PM, Davyd McColl  wrote:
> 
> Ralph, I'd appreciate any help here. Seems there's a permissions error or 
> something - sdk docs links return a 403.
> 
> -d
> 
> 
> On 16 November 2022 23:22:26 Alex Winfield <7nil...@gmail.com> wrote:
> 
>> Where should I look for the docs?
>> 
>> All of the examples point to dead links:
>> https://logging.apache.org/log4net/release/config-examples.html
>> 
>> Sample code online doesn't appear to actually work (%aspnet-context appears
>> to be parsed as just %a, with "spnet-context" as a static string).
>> 
>> I can see that there definitely is something for handling asp.net contexts (
>> https://git-wip-us.apache.org/repos/asf?p=logging-log4net.git;a=blob_plain;f=src/log4net/Layout/Pattern/AspNetContextPatternConverter.cs;hb=HEAD),
>> but I have no idea why it isn't working or what I need to do to enable it.
>> 
>> I'm just very confused on what format properties are available, which may
>> have been renamed over time, etc
>> 
>> I was able to get what I wanted to work using middleware, but it does feel
>> weird that there's so little documentation available.  I'd appreciate any
>> links that could help (I feel like this property is probably already
>> available and not need an entire middleware just to hook into log4net lol)
>> 
>> Also, log4net-u...@logging.apache.org appears to not have anyone watching
>> answering questions.  If it isn't being used, it should probably be removed
>> from the docs as a valid way to get help.



Re: Docs?

2022-11-16 Thread Ralph Goers
Logging Services uses CTR. Reviews are never required.  However, the process 
for web sites is to update the ask-staging branch, push that, verify the change 
on the staged site, and then checkout the asf-site branch and do “git rebase 
asf-staging”.

Ralph

> On Nov 16, 2022, at 11:39 PM, Davyd McColl  wrote:
> 
> Thanks Ralph, you're right - the link should be to 
> ../../log4net-2.0.8/release/sdk. The api hasn't changed since then - 
> fortunately for me, because I haven't been able to successfully re-generate 
> the sdk documentation. One of the items on my never-ending list of TODOs is 
> to update the way those docs are generated, using new tooling, so perhaps the 
> docs (a) could be auto-generated and (b) will look a little nicer.
> 
> Can I just update my `asf-site` branch and push? no need for review, surely?
> 
> -d
> 
> On 2022-11-17 08:16:26, Ralph Goers  wrote:
> Looking at .htaccess it seems everything is directed to log4net-2.0.15.
> In log4net-2.0.15/release I see
> 
> sdk -> log4net-2.0.8/release/sdk
> 
> I think that symlink is wrong and should be ../../log4net-2.0.8/release/sdk - 
> assuming of course you want 2.0.15 to reference something in 2.0.8.
> 
> Ralph
> 
>> On Nov 16, 2022, at 9:08 PM, Davyd McColl wrote:
>> 
>> Ralph, I'd appreciate any help here. Seems there's a permissions error or 
>> something - sdk docs links return a 403.
>> 
>> -d
>> 
>> 
>> On 16 November 2022 23:22:26 Alex Winfield <7nil...@gmail.com> wrote:
>> 
>>> Where should I look for the docs?
>>> 
>>> All of the examples point to dead links:
>>> https://logging.apache.org/log4net/release/config-examples.html
>>> 
>>> Sample code online doesn't appear to actually work (%aspnet-context appears
>>> to be parsed as just %a, with "spnet-context" as a static string).
>>> 
>>> I can see that there definitely is something for handling asp.net contexts (
>>> https://git-wip-us.apache.org/repos/asf?p=logging-log4net.git;a=blob_plain;f=src/log4net/Layout/Pattern/AspNetContextPatternConverter.cs;hb=HEAD),
>>> but I have no idea why it isn't working or what I need to do to enable it.
>>> 
>>> I'm just very confused on what format properties are available, which may
>>> have been renamed over time, etc
>>> 
>>> I was able to get what I wanted to work using middleware, but it does feel
>>> weird that there's so little documentation available. I'd appreciate any
>>> links that could help (I feel like this property is probably already
>>> available and not need an entire middleware just to hook into log4net lol)
>>> 
>>> Also, log4net-u...@logging.apache.org appears to not have anyone watching
>>> answering questions. If it isn't being used, it should probably be removed
>>> from the docs as a valid way to get help.
>