Skip to content

set loglevel to scr #420

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

set loglevel to scr #420

wants to merge 1 commit into from

Conversation

stbischof
Copy link
Contributor

No description provided.

@stbischof
Copy link
Contributor Author

stbischof commented May 11, 2025

i am struggeling. Someon knows hot to remove this from the log?

@oliverlietz
@laeubi
@timothyjward

[shaded.org.apache.http.wire] : http-outgoing-0 << "X-Cache-Hits: 69, 0[\r][\n]" Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.wire] : http-outgoing-0 << "X-Timer: S1746956041.456382,VS0,VE1[\r][\n]" Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.wire] : http-outgoing-0 << "[\r][\n]" Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.headers] : http-outgoing-0 << HTTP/1.1 200 OK Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.headers] : http-outgoing-0 << Connection: keep-alive Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.headers] : http-outgoing-0 << Content-Length: 11605 Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.headers] : http-outgoing-0 << ETag: "3895eee2c50faededc4d4bea730b79cf" Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.headers] : http-outgoing-0 << Content-Type: application/java-archive Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.headers] : http-outgoing-0 << Last-Modified: Sun, 22 Mar 2020 15:39:51 GMT Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.headers] : http-outgoing-0 << X-Checksum-MD5: 3895eee2c50faededc4d4bea730b79cf Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.headers] : http-outgoing-0 << X-Checksum-SHA1: 0c7fb1a615ba067c69d27d7b732385322a1951bc Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.headers] : http-outgoing-0 << Via: 1.1 varnish, 1.1 varnish Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.headers] : http-outgoing-0 << Accept-Ranges: bytes Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.headers] : http-outgoing-0 << Age: 431270 Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.headers] : http-outgoing-0 << Date: Sun, 11 May 2025 09:34:01 GMT Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.headers] : http-outgoing-0 << X-Served-By: cache-iad-kjyo7100023-IAD, cache-nyc-kteb1890042-NYC Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.headers] : http-outgoing-0 << X-Cache: HIT, HIT Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.headers] : http-outgoing-0 << X-Cache-Hits: 69, 0 Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.headers] : http-outgoing-0 << X-Timer: S1746956041.456382,VS0,VE1 Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.impl.execchain.MainClientExec] : Connection can be kept alive indefinitely Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.wire] : http-outgoing-0 << "PK[0x3][0x4][0x14][0x0][0x8][0x8][0x8][0x0][0x6]|vP[0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x14][0x0][0x4][0x0]META-INF/MANIFEST.MF[0xfe][0xca][0x0][0x0]u[0x93]Ao[0xe2]0[0x10][0x85][0xef]H[0xfc][0x7][0x8b][0xc3][\n]" Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.wire] : http-outgoing-0 << "$b[0x92][0x10]Z[0x9a][0x8a]C[0xcb]r[0x0]A[0x8b]J[0xb7][0x97]=[0xac]L2I[\r][0xc1][0xce][0xda][0x86][0xd0]�[0xbf][0xe3]$[0x9b][0x82]v[0xab][0x1c]"[0x8d][0xbf]y~[0xf3]l[0xaf][0x98][0xe0][0x9]h[0xe3][0xbc][0x81][0xd2]\[0x8a][0x90]x[0xd4]m[0xb7][0x1e]E[0xec],[0x99]6+[0x19][0xf3][0x84]C[0x8c][0xe5][0xd1]8[0x18][0xdf]y[0xde][0xd0][0xbf][0x9],p[0xe4]Y[0xec],[0xe2][0xbd]m[0x18]S[0xf7][0x97][0x1f]xU[0xd5]8[0x8f][0x1f]![0xd9]m[0xa5][0x90][0x89][0x2][[0x13]q[0x6][0xce]Cd[0xf8][0x89][0x19][0xa9]B"UJe[0xae][0x83][0x1d][0xcd][0xd9][0x99][0xc2][0x99][0x1d]([0x17];[0x88][0xc][0xfe][0xc]([0xc1]2[0xda][0xd0]M[0xff]w[0xd0][0x91][0xe2][0xb9])=[0xae][0xd9][0x99][0xcc][0xb0][0x8f][0xcc][0xb1]!U[0xcc]V[0x89][0xc1]1[0xb8]HI[0xa2][0xd8][0x1][\n]" Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.wire] : http-outgoing-0 << "[0xa9][0xf6]$[0x91][0x8a][0xe0][0x4](I[0x16][0xac][0xdd]"'F[0xd6][0x19]3X>h[0xfa][0xa9],[0xa3][0x1f]/[0xcb][0x90][0xbc][0x1b][0x93][0x87][0x83]AQ[0x14][0xb5];[0xf4]9h[0xa8]%[0x8f]@h[0xb8][0xc2]X[0xce][0xa2]w([0xb9][0xac]Z[0xd6][0x83][0xe5]|:{[0xda][0xcc][0x1c][0xbf][0x8c][0xb1][0xea]][0xd5]!7[0x19][0xfb][0xcd][0xd2][0x13]z[\r][0xc9][0xf3]z[0x13],.[0xa7][0xb2]i [0xd9]`[0x9b][0x8f][0xc3]V[0xe2][0x1e][0x15][0xfe]e[0x80][\r][0xff][0x6]"[0xb6]QW[0xc2][0xe]y[0xce]A[0xa0][0xbe]2<[0xe2]y[0x15][0xd7]F&[0xa6]`[\n]" Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.wire] : http-outgoing-0 << "[0xca][0x94][0x16][0xec][0xc4].[0x9a]k[0x9b][0x1][0xf5][0x86]t[0xd8]nM[0x15]0[0x3]qy[0xb0][0xf][0xe5][0xcc]d[0xc5]N[0xa8]X5`[0xa8][0xc7][0x94][0xa3][0xd9][0xf9]![0x97][0xca]8k[0x16][0xed]Y[0x8a]>w[0xa8]z[0xae][0xad][0xdd][0x9f]*[0xd5]I[0xe7]'[0xde][0xb0][0xbe][0xdf][0xeb][0xf4][0xff][0x1d][0xa3][0x86][0xf0][0xa8],g[0xb7][0xef][0x8f][0xfe][0xb][0xd2][0xa3][0xe1][0xd9][0x85][0xe4][0x17][0xa8]F[0xa5][0x82]k[0xbd][0x95]gj[0x14][0xda][0x2]u[0xe5]c[0xfc][0xe9]C[0xa7][0x9c]67[0xe7][\n]" Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.wire] : http-outgoing-0 << "[0xba])!T[0xb2][0x9c][0xce][0x92]`w[0xb5][0x1c][0xd8][0xe5]v[0xeb][0x5]~[0x1f][0xb9][0x2]g[0x8a][0x97]b[0xcb]3n0[0xab]R[0x14][0xe0]>[0xc1]W[0x1]*[0x9c]t[0xba][0xdf][0xba]umb[0x13][0xdf][0xcc]z[0xdd][0xbf]R[0x1e][0xbd][0xed]Y[0x9d]W)[0xb3][0x90][0xd8][0xf7]7[0xa4].~[0xbe][0xeb][0x8d][0xdc];[0xcf][0xb5][0xf][0xaf][0xdd][0xfa][0x3]PK[0x7][0x8][0xc4][0xc3]^[0x13][0xfd][0x1][0x0][0x0][0xaf][0x3][0x0][0x0]PK[0x3][0x4][0x14][0x0][0x8][0x8][0x8][0x0][0x6][0x84]vP[0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x9][0x0][0x0][0x0]META-INF/[0x3][0x0]PK[0x7][0x8][0x0][0x0][0x0][0x0][0x2][0x0][0x0][0x0][0x0][0x0][0x0][0x0]PK[0x3][0x4][0x14][0x0][0x8][0x8][0x8][0x0][0x6]|vP[0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x19][0x0][0x0][0x0]META-INF/DEPENDENCIES.txt[0xbd][0x95][0xc1]r[0xda]0[0x10][0x86][0xef]<[0xc5][0xde][0xd2][0x1c]l54[0x99]v|#[0x1d][0x98][0x92]q[0x2][0x1d][0xe7][0xd0][0xab][0x90][0xd7][0xb1][0xc0][0x96]TI`[0xe8][0xd3]wmp[0xb]L[0x86]a[0xdc][0x82][0xf][0x1e][0xaf][0xf6][0xdf][0xf5][0xff]I[0xb2][0xc5][0x18][0x4][0xff]|[0xf5][0x18][0x83]W[0xcb][0x95][0x93]^[0xae][0x10]R4[0xa8]RTB[0xa2][0x3][0x9d][0x81][0xcf][0xa5][0x3]c[0xf5][0x1c][0x85][0xa7][0xa4]G[J[0x85])dV[0x97][0x94][0xc4][0xba][0xbc][0xe4]+T`h@[0xdb]7[0xae][0xe4]/[0xca][0xcf]6m[0xc0][0xbd][0xd4]*[0xac]u[0xff][0xc1]lo2M[0xee][0x9f]`[0xca][0xd7]0\[0xf3][0x12][0xc6][0xaa]6F/[0xe8][0xf5]z#[0xb2][0x14][0xc1][0xcd]V[0x11][0xc0][0x84]@Hh[0xbd][0x14][0xd2]4& [0xd1][0x99][0xaf][0xb8]E[0xc8][0xb4][0x85]'[0xbe][0xe2]7[0xf0]![0xf7][0xde]D[0x8c]UU[0x15]j[0xe3][0xee][0xe7]![0xd9]f[0xb7]=[0xa8];4[0x9d][0x1e][0xb9]C[\n]" Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.wire] : http-outgoing-0 << "[0x86]k[0x14][0xcb][0xa6]K[[0xe2][0x91][0x97]{5[0x95]\H[0x96]Jg[\n]" Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.wire] : http-outgoing-0 << "[0xbe]a3*bM.[0xa8][0x1f][0x3][0xa4]jv[O[0xc9][0xae][0xa2][0x1e][0x8d][0x8e][0x4][0xd1]l[0xa9][0xd2][0x2][0xa3][0xbb][0xf0]![0xbc]#[0x7][0x0][0xb1][0x14][0xa8]H[0x8][0x83]x[0xd5][0x87][0x3][0xb3][0xdc]p[0x91]c[0xf3][0xe6]b[0xab]r,[0x1e]�[0x1d][0xbe]$[0xc3][0xa0][0x1f]~[0xc]s_[0x16][0xef]`[0x8c]'[0x9d][0xfc]K}[0xd2][0xbd][0xd4][0xd7][0xf0][0x1e]s[0xf5][0xd6][0xc9]}A[0x85]'[0xfd][0xd7][0x82]k[0x10]<k%[0xbd][0xb6][0xae][0x13]E[0xb9]+>I[0xd2][0x8a][0xae]A[0xf3][0x82][0xbe][0x13][0x88]B�[0x92][0x81][0xf2][0xd7][0xb0][0x9f][0xa0]][0x91][0x1c][0xa6]V[0xaf]d[0x8a][0x16][0x6]B[0xa0][0xeb][0xb6]6[0xce][0xc8][0x93]H[0x94][0xbf](R[0xfd]CL*[0xe9][0xdc]L[0xaf]![0x8a]`dy[0x89][0x95][0xb6][0xb][0xf8][0x86][0x85][0xc1]3w[0xdc]t[0xf0]#yd[0x86][0xaf][0x3][0xb7][0xeb][0x15]dm[0xa3]}:R[0x84][0xad]"z_[0xfe][0x97][0xf6]K[0xf8][0xe9][0xd2][0xb4][0xb1][0xcc]PlD[0x81]])[0x8b][0xb6][0xc1]y[0x94]�[0xe4]W[0xa5][0xa4]SZ,h[0x9b]vd[0xf4][0xdb][0xf2][0xf3][0x8]w[0xe2][0xb][0xf0][0xb5][0xc7][0xf4][0xf7]I[0x12][0x8a][0xfc][0xf0][0x0][0xfe][0xa9][0x1d][0x8d]m[0xe7] [0x89]G4[0x7][0x83][0xe9][0x98]~[0x9a][0xe9]roik[0xa1]+[0xb2]-[0xf5][0x96][0xa6][0x9][0xa3][0xe6][0x1e]p[0xfa][0xd2][0xe6][0xdc][0x92][0xe5][0xcf]a[0xff][0xe1][0xd0][0xf3][0xf3][0xf8][0xb5][\r][0xe0][0xe8][0xe4][0xa7]1[0xbd][0xb4][0xe2][0xc8]~)}[0xb0][0xb]B[0x93][0x1b]rO[0xd7]oPK[0x7][0x8]q[0xcf]i9[0x1c][0x2][0x0][0x0]w[0x9][0x0][0x0]PK[0x3][0x4][0x14][0x0][0x8][0x8][0x8][0x0][0x6]|vP[0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x0][0x14][0x0][0x0][0x0]META-INF/LICENSE.txt[0xdd]Z[s[0xdb][0xc6][0x15]~[0xf7][0xaf][0xd8]r[0xa6]Si[0x6][0xa6][0x9d]4i[0x1b][0xe7][0x89][0xb1][0xe4][0x86][0xad]CiD[0xb9]n&[0x93][0x87]%[0xb0] [0xb7][0x6][0xb0][0xc8]. [0x8a][0xfd][0xf5]=[0x97][0xbd][0x81][0xa4]dw[0xfa]VM[0xa6]5I[0xec][0xd9][0xb3][0xe7][0xf2][0x9d][0xef][0x9c][0xc5][0xb][0xf1][0xb9][0xbf]E/[0xcb][0x9d][0x12][0xef]u[0xa9]:" Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.wire] : http-outgoing-0 << "[0xa7]^<[0xf3][0xe4]?[0x94]u[0xda]t[0xe2][0xeb][0xf9][0xeb]B[0xfc]Mv[0xa3][0xb4][0x7][0xf1][0xf5][0xeb][0xd7][0xdf]<[0xb9]h7[0xc][0xfd][0x9b]W[0xaf][0xf6][0xfb][0xfd]\[0xd2]6sc[0xb7][0xaf][0x1a][0xde][0xca][0xbd]z[0x81][0xb][0xef][0xaf][0xef]~Z[0x8b][0xc5][0xea]J[0xbc][0xbd]Y]-[0xef][0x97]7[0xab][0xb5]xws'>[0xac][0xaf][0xb]qw}{ws[0xf5][0xe1]-~][0xd0]SW[0xcb][0xf5][0xfd][0xdd][0xf2][0x87][0xf][0xf8][\r][0x9][0xf8]j.[0xae]T[0xad];=[0x80]rn[0xfe][0xc2]k3[0xf3]'[0x9a][0x9][0xb7][0x93]M#Z%;1[0xc0]I[0x7]e['dW[0x89][0xd2]t[0x15][0xaf][0x12][0xb5][0xb1]bt[0xaa][0x10]V[0xf5][0xd6]Tc[0x89]_[0x17]^[0x14]>[i7X[0xbd][0x19][0xf1]{![0x9d][0xa8]pKU[0x89][0xcd]A[0xac]U[0xc9]B[0xbe][0x2][0xf9][0xd6][0x8c][0xdb][0x9d][0xf8]N[0x98][0x1a]>hx[0xce][0x94]c[0xab][0xba][0xe1]X/cO[0x14]+M�[0xb0]z[0xbb][0x1b][0x84][0xd9]w[0xca][\n]" Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.wire] : http-outgoing-0 << "P[0x9][0x16][0xea][0xe1] [0xe4]8[0xec][0x8c][0xd5][0xff][0xa6][0xfd][0xbc][0x9c]s+[0x86][0x9d][0x1c][0x4]l[0xba][0xb5][0x12][0x16]v[z[0xc8][0xdb]!S@me#[0xae]I[0xf4][0x89][0x12]c[0x87][0x7]$[0xed][0x95][0x90]%I[0x9]Z[0x80][0x19][0xe0]Y/[0xc6][0xc0][0x3]^A[0xad][0x1c]o[\r][0x6][0x1d][0xac]i[\n]" Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.wire] : http-outgoing-0 << "![0xad][\n]" Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.wire] : http-outgoing-0 << "[0x1f][0x1a]R[0xba][0xc0][0xd3][0xe0][0xb7]cW[0xc1][0xb2][0xd2][0xb4][0xad][0xe9][0xbc]$[0xff][0xa0][0xd8][0xeb]a[0xc7]rx[0xc3][0xb9]xg,[0xe9][0xd1][0x8f][0xb6]7[0x10]1[0xc9][0xaa][0xd1][0xe1][0xc1]G3/eFGq[0xe2]B_[0xf2]R[0xb3]W[0xb6][0x0][0xf7]Y[0xf0][0x12]*[0xa1];[0xfe]w![0x6]#J[0x9]N[0xc7][0xe7][0xbc][0x14][0xfe][0x89],`E+;[0xb9]U[0xe8]<[0xdc][0xd7][0x8d][0xe5][0xce]+V[0x88][0xfd]N[0xd1][0xf1][0xc1][0xfb][0xb4][0xaf]$[0xd9][0xb9]e[0xf6][0x1a][0xa3][0x9][0xa4]\h[0xd0][0x84][0xdc][0xe3]v[0xba]GI[0xb5][0xae][0xc1][0x9a][0xbd][0xb2]%[0x8a][0xbe][0xf8][0xf6][0xf5][0xef]/i;[0x3][0xe6]a[0xc3][0x7]A[0xe3][0xe0][0x6][0xb0]:[0xfa][0x0][0xdc]d[0x95][0xb][0x12]A[0xe4]Fu`[0x84]R[0x83]+'[0xd2]3=[0x93][0xcb]�6[0xe3]L\[0xc0]Z[0xfc][0x97][0x9d]][0xe6]^[0x87][0xff][0xd0]&[0xf][0xba][0x1a]Q[0x96][0x15]y|x[0x1][0xea][0x11][0xb4][0xd5][0xe][0x15][0x1][0xbd][[0xed][0x1c][0x5]<[0xc5][0x19]'[0x1][0xb9][0xe5]$[0xd4][0xd6][0xb0][[0x9])[0x8][0xe9][0xd5][0x1e]GZoU[0xad][0xac][0x85][0xe5][0xf4]kM[0x16][0xff][0x84][[0xb4][0xa6][0xd2]p4IY[0x15][0x1c][0xac][0xbb][0xb2][0x19][0xc9][0x14][0x90][0x84][0xa2]3[0x83]ht[0xab]qw[0xf0][0xa3]3[0xf5][0xb0][0xc7][0xf0]r[0xb4]!8[0xa5][0x2][0xeb][0x87][0xdc]#A^[0xc]?P[0x84][0xfc][0xaf][0xf5]v[0xb4][0xf4];[0xb8][0xa5]Q[0x19]|[0xdc]l[0xfe][0x5][0xa1]p[0xaa][0xba][0xec][0xe][0xfc][0x1d][0xb8]cl(?jkZ[0xf8][0xb1][0xdc][0xc9][0xe][0xb4][0xe][0x9][0x2]Q[0xd1]9|R[0x86][0x80][0xa2]o[0x1a][0xff][0xb1][0x16]R[0xb0]yH\1=[0xa0][0x97]qtLH[0x9b]^cB[0x19]R[0xce][0x1f]s[0xb][0x91][0x0]g[0x80][0xaf]'[0x7][0xce][0xd1][0xb]N[0xfa][0xc0][0xe8][0xed]P[0xe][0xe7]n[0xab]*-[0xc5]p[0xe8][0xf3]c�4[0xf6][0xd3][0x9]([0xec][0xe1]K[0xd2][0x98]p[0x8]#-[0xa5][0x80][0xee][0xc2]1b[0x2][0xb0][0xe9][0xfc][0xb1]ZY[0x1][0x90]<H[0xdd][0xc8]M[0x13][0xf2]?[0xc3][0xa5][0x2][0xd1][0x14][0x3][0xb0][0x94]>[0x94]d[0xc4][0x85][0x80]n`[0x6]x8[0xc2][0x1b][[\n]" Ignored FQCN: shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog

@laeubi
Copy link

laeubi commented May 11, 2025

Sadly not, I have had the same problem here:

@glimmerveen
Copy link
Contributor

@stbischof In my own projects where I use Pax Exam, I have set the log-level of 'shaded.org.apache.http' to WARN to avoid any downloads initiated from Pax Exam, to have the contents of these downloads (ie the bytes) be logged.

@stbischof
Copy link
Contributor Author

Sounds good.

But how. I never used pax. Could you help me with this pr? And update the code or paste the lines andnpositions

@glimmerveen
Copy link
Contributor

Sounds good.

But how. I never used pax. Could you help me with this pr? And update the code or paste the lines andnpositions

I don't know how logging is configured within the SCR project's test suite, but I can have a look later tonight.

@glimmerveen
Copy link
Contributor

@stbischof I have made some progress, but along the way found that there is some what I would consider technical debt related to logging and its configuration.

I found that this project refers to both pax-logging-api/pax-logging-service (which embeds various logging APIs (among others, SLF4j) and log4j), and it refers to logback. As pax-logging version used is quite old, the versions it embeds are also quite old, whilst the logback reference (1.3.13/1.3.15) is quite a bit more recent. This logback version is already dependent on SLF4j 2.x for instance, whilst the pax logging's highest SFL4j version is 1.6.

Also it should be noted that Pax Exam is used with the forked factory, meaning that the OSGi runtime it builds is executed in a separate process, from JUnit in which Pax Exam constructs this runtime. It is in the JUnit process where any dependencies are downloaded (and where the bytes dump towards the log originates from).

With the following steps I got a bit control on what happens, but this imo is still not a clean solution:

  • Move the logback dependencies above all pax logging dependencies in the maven dependencies list. This ensures that logback takes precedence on a flat class path over pax logging
  • Downgraded logback to 1.2.12, which still supports SLF4j 1.7 (which is more or less still compatible with the SLF4j version used by pax logging)
  • Added a logback-test.xml in src/test/resources to take control over the logging format & level of the logging aspects:
<configuration>

    <!-- defined a console append -->
    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
        <encoder>
            <pattern>%d{HH:mm:ss.SSS} [%15.15thread] %-5level %-36.36logger{36} - %msg%n</pattern>
        </encoder>
    </appender>

        <logger name="shaded.org.apache.http" level="WARN" />

    <root level="DEBUG">
        <appender-ref ref="STDOUT" />
    </root>
</configuration>

@stbischof
Copy link
Contributor Author

Could you create. Pr of this?

Or a fix hat makes it in a more modern way?

@laeubi
Copy link

laeubi commented May 12, 2025

@grgrzybek can you help here with felix usage of pax-exam? Maybe we should just upgrade to a more recent version...

glimmerveen added a commit to Thales-Netherlands/felix-dev that referenced this pull request May 12, 2025
…nges disables Pax Exam's preference for Pax Logging, and changes it with Logback (in the latest SLF4j 1.7.x compatible version). With this change, SLF4j and Logback are now available for both the unit tests and the pax exam tests.

Configured explicit versions of all 'mavenBundle's declared in the ComponentTestBase, as otherwise Pax will depend on Maven's LATEST, which is not always compatible.
@glimmerveen
Copy link
Contributor

Could you create. Pr of this?

Or a fix hat makes it in a more modern way?

I have just created #421 , could you have a look at it?

@stbischof stbischof closed this May 13, 2025
stbischof pushed a commit that referenced this pull request May 14, 2025
…isables Pax Exam's preference for Pax Logging, and changes it with Logback (in the latest SLF4j 1.7.x compatible version). With this change, SLF4j and Logback are now available for both the unit tests and the pax exam tests.

Configured explicit versions of all 'mavenBundle's declared in the ComponentTestBase, as otherwise Pax will depend on Maven's LATEST, which is not always compatible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants