Skip to content

Commit 641004c

Browse files
vyppkarwasz
andcommitted
Revamp cloud.adoc for service-oriented architectures (#2715)
Co-authored-by: Piotr P. Karwasz <piotr.github@karwasz.org>
1 parent f7b2862 commit 641004c

File tree

16 files changed

+377
-542
lines changed

16 files changed

+377
-542
lines changed

src/site/antora/antora.tmpl.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ asciidoc:
4545
project-id: "log4j"
4646
java-target-version: "${maven.compiler.target}"
4747
java-compiler-version: "${minimalJavaBuildVersion}"
48+
log4j-kubernetes-url: "https://github.com/fabric8io/kubernetes-client/blob/main/doc/KubernetesLog4j.md"
4849
logback-url: "https://logback.qos.ch"
4950
logging-services-url: "https://logging.apache.org"
5051
lmax-disruptor-url: "https://lmax-exchange.github.io/disruptor"

src/site/antora/antora.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ asciidoc:
4545
project-id: "log4j"
4646
java-target-version: "8"
4747
java-compiler-version: "[17,18)"
48+
log4j-kubernetes-url: "https://github.com/fabric8io/kubernetes-client/blob/main/doc/KubernetesLog4j.md"
4849
logback-url: "https://logback.qos.ch"
4950
logging-services-url: "https://logging.apache.org"
5051
lmax-disruptor-url: "https://lmax-exchange.github.io/disruptor"
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"Configuration": {
3+
"Appenders": {
4+
// tag::socketAppender[]
5+
"Socket": {
6+
"name": "SOCKET",
7+
"host": "localhost",
8+
"port": 12345,
9+
"JsonTemplateLayout": {
10+
"nullEventDelimiterEnabled": true
11+
}
12+
}
13+
// end::socketAppender[]
14+
},
15+
"Loggers": {
16+
"Root": {
17+
"level": "WARN",
18+
"AppenderRef": {
19+
"ref": "SOCKET"
20+
}
21+
}
22+
}
23+
}
24+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to you under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
18+
# tag::socketAppender[]
19+
appender.0.type = Socket
20+
appender.0.name = SOCKET
21+
appender.0.host = localhost
22+
appender.0.port = 12345
23+
appender.0.layout.type = JsonTemplateLayout
24+
appender.0.layout.nullEventDelimiterEnabled = true
25+
# end::socketAppender[]
26+
27+
rootLogger.level = WARN
28+
rootLogger.appenderRef.0.ref = SOCKET
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Licensed to the Apache Software Foundation (ASF) under one or more
4+
~ contributor license agreements. See the NOTICE file distributed with
5+
~ this work for additional information regarding copyright ownership.
6+
~ The ASF licenses this file to you under the Apache License, Version 2.0
7+
~ (the "License"); you may not use this file except in compliance with
8+
~ the License. You may obtain a copy of the License at
9+
~
10+
~ http://www.apache.org/licenses/LICENSE-2.0
11+
~
12+
~ Unless required by applicable law or agreed to in writing, software
13+
~ distributed under the License is distributed on an "AS IS" BASIS,
14+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
~ See the License for the specific language governing permissions and
16+
~ limitations under the License.
17+
-->
18+
<Configuration xmlns="https://logging.apache.org/xml/ns"
19+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20+
xsi:schemaLocation="
21+
https://logging.apache.org/xml/ns
22+
https://logging.apache.org/xml/ns/log4j-config-2.xsd">
23+
24+
<Appenders>
25+
<!-- tag::socketAppender[] -->
26+
<Socket name="SOCKET" host="localhost" port="12345">
27+
<JsonTemplateLayout nullEventDelimiterEnabled="true"/>
28+
</Socket>
29+
<!-- end::socketAppender[] -->
30+
</Appenders>
31+
32+
<Loggers>
33+
<Root level="WARN">
34+
<AppenderRef ref="SOCKET"/>
35+
</Root>
36+
</Loggers>
37+
38+
</Configuration>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to you under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
Configuration:
18+
19+
Appenders:
20+
# tag::socketAppender[]
21+
Socket:
22+
name: "SOCKET"
23+
host: "localhost"
24+
port: 12345
25+
JsonTemplateLayout:
26+
nullEventDelimiterEnabled: true
27+
# end::socketAppender[]
28+
29+
Loggers:
30+
Root:
31+
level: "WARN"
32+
AppenderRef:
33+
ref: "SOCKET"
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)