Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
f35beed
Bump quarkus.version from 2.9.0.Final to 2.10.0.Final
dependabot[bot] Jun 16, 2022
fbb86e0
Merge pull request #182 from quarkiverse/dependabot/maven/quarkus.ver…
SlyngDK Jun 23, 2022
ce1df2c
Bump quarkus.version from 2.10.0.Final to 2.10.2.Final
dependabot[bot] Jul 7, 2022
7cc5946
Merge pull request #185 from quarkiverse/dependabot/maven/quarkus.ver…
SlyngDK Jul 14, 2022
a9d85f3
Bump quarkus.version from 2.10.2.Final to 2.10.3.Final
dependabot[bot] Jul 20, 2022
8b1cb3a
Merge pull request #186 from quarkiverse/dependabot/maven/quarkus.ver…
SlyngDK Jul 20, 2022
75bb734
Bump quarkus.version from 2.10.3.Final to 2.12.0.Final
dependabot[bot] Aug 25, 2022
681acec
Merge pull request #192 from quarkiverse/dependabot/maven/quarkus.ver…
SlyngDK Aug 30, 2022
6165885
More modern doc infrastructure
gsmet Sep 5, 2022
2b19877
Bump quarkus.version from 2.12.0.Final to 2.13.0.Final
dependabot[bot] Sep 22, 2022
10b7ab7
Merge pull request #193 from gsmet/docs
SlyngDK Oct 4, 2022
42f52cb
Updated quarkiverse-parent to version 10
SlyngDK Oct 4, 2022
9e7c465
Fixed formatting
SlyngDK Oct 4, 2022
56d95a6
Merge pull request #198 from quarkiverse/update-parent-10
SlyngDK Oct 4, 2022
2eec8fb
Added file formatter and refactored config.
SlyngDK Oct 4, 2022
436f99e
Merge pull request #199 from quarkiverse/file-formatter
SlyngDK Oct 5, 2022
c9be83b
Release 2.0.0
SlyngDK Oct 5, 2022
d85ff76
Merge pull request #197 from quarkiverse/dependabot/maven/quarkus.ver…
SlyngDK Oct 5, 2022
ce779d5
Merge pull request #200 from quarkiverse/release-2.0.0
SlyngDK Oct 7, 2022
0004615
Revert "Release 2.0.0"
SlyngDK Oct 7, 2022
72d0474
Merge pull request #202 from quarkiverse/revert-200-release-2.0.0
SlyngDK Oct 7, 2022
dd4ec97
Release 2.0.0
SlyngDK Oct 7, 2022
af101b4
Updated quarkus-log-json.adoc
Oct 7, 2022
e374ad8
Merge pull request #203 from quarkiverse/release-2.0.0
SlyngDK Oct 9, 2022
20d06c8
[maven-release-plugin] prepare release 2.0.0
actions-user Oct 9, 2022
a3bb0fc
[maven-release-plugin] prepare for next development iteration
actions-user Oct 9, 2022
b50215c
Update stable version for documentation
actions-user Oct 9, 2022
c965f42
Bump quarkiverse-parent from 10 to 12
dependabot[bot] Dec 12, 2022
ab3b897
Merge pull request #216 from quarkiverse/dependabot/maven/io.quarkive…
gastaldi Jan 5, 2023
74c4e9a
Bump jacoco.version from 0.8.8 to 0.8.9
dependabot[bot] Apr 3, 2023
9bde18c
Merge pull request #228 from quarkiverse/dependabot/maven/jacoco.vers…
SlyngDK Apr 16, 2023
bb073e9
Update release script (#233)
gastaldi Apr 18, 2023
42b80a4
update for quarkus 3.0.0 (javax/jakarta)
KarlScheibelhofer Apr 2, 2023
c218854
Bump quarkiverse-parent from 12 to 13
dependabot[bot] Apr 20, 2023
caa7cbf
Added version matrix to README.md
SlyngDK Apr 20, 2023
30dec5c
Release 2.0.1
SlyngDK Apr 20, 2023
7f224cc
Merge pull request #236 from quarkiverse/release-2.0.1
SlyngDK Apr 20, 2023
86fbe46
Update the latest release version 2.0.1 in documentation
actions-user Apr 20, 2023
11d1066
[maven-release-plugin] prepare release 2.0.1
actions-user Apr 20, 2023
141d4b2
[maven-release-plugin] prepare for next development iteration
actions-user Apr 20, 2023
299865b
Merge branch 'main' into upgrade_to_3
Apr 20, 2023
7941e84
Merge pull request #234 from quarkiverse/upgrade_to_3
SlyngDK Apr 20, 2023
0e8515e
Release 3.0.0
SlyngDK Apr 20, 2023
0f83edc
Merge pull request #235 from quarkiverse/dependabot/maven/io.quarkive…
SlyngDK Apr 20, 2023
e00f067
Merge pull request #237 from quarkiverse/release-3.0.0
SlyngDK Apr 20, 2023
acc6b20
Update the latest release version 3.0.0 in documentation
actions-user Apr 20, 2023
d653c15
[maven-release-plugin] prepare release 3.0.0
actions-user Apr 20, 2023
479579b
[maven-release-plugin] prepare for next development iteration
actions-user Apr 20, 2023
f8765e9
Bump quarkus.version from 3.0.0.Final to 3.0.1.Final
dependabot[bot] Apr 26, 2023
117081f
Merge pull request #238 from quarkiverse/dependabot/maven/quarkus.ver…
SlyngDK Apr 26, 2023
ed48da3
Bump jacoco.version from 0.8.9 to 0.8.10
dependabot[bot] Apr 26, 2023
bfd5bfc
Merge pull request #239 from quarkiverse/dependabot/maven/jacoco.vers…
SlyngDK Apr 26, 2023
6442a64
Bump quarkus.version from 3.0.1.Final to 3.0.2.Final
dependabot[bot] May 4, 2023
115df23
Merge pull request #240 from quarkiverse/dependabot/maven/quarkus.ver…
SlyngDK May 4, 2023
15abd3c
Bump quarkiverse-parent from 13 to 15
dependabot[bot] Jun 8, 2023
3547cd4
Adjust doc title
gastaldi Jul 7, 2023
b9af397
Bump quarkus.version from 3.0.2.Final to 3.2.1.Final
dependabot[bot] Jul 20, 2023
8178955
Merge pull request #253 from quarkiverse/dependabot/maven/quarkus.ver…
SlyngDK Jul 20, 2023
cc20e6b
Bump quarkus.version from 3.2.1.Final to 3.4.1
dependabot[bot] Sep 21, 2023
d4ead60
Merge pull request #249 from quarkiverse/dependabot/maven/io.quarkive…
SlyngDK Oct 3, 2023
6062d73
Merge pull request #266 from quarkiverse/dependabot/maven/quarkus.ver…
SlyngDK Oct 3, 2023
1d08a6c
Bump build to JDK 17 (#280)
gastaldi Dec 1, 2023
5a98237
Bump quarkus.version from 3.4.1 to 3.6.4
dependabot[bot] Dec 20, 2023
283d20a
Add SCM tag
gastaldi Jan 11, 2024
eb6a4c6
Update release workflow
gastaldi Jan 25, 2024
c18fdf3
Make quarkus-jsonb and quarkus-jackson optionals
tms0 Dec 6, 2023
045c791
Merge pull request #284 from quarkiverse/dependabot/maven/quarkus.ver…
SlyngDK Apr 5, 2024
231b045
Merge pull request #285 from quarkiverse/update_release
SlyngDK Apr 5, 2024
d791cb7
Bump io.quarkiverse:quarkiverse-parent from 15 to 16
dependabot[bot] Apr 5, 2024
33a6087
Update build.yml
gastaldi Apr 5, 2024
66d948a
Release 3.1.0
SlyngDK May 14, 2024
51611e8
Merge pull request #296 from quarkiverse/release-3.1.0
SlyngDK May 14, 2024
4c146d6
Update the latest release version 3.1.0 in documentation
actions-user May 14, 2024
e770df1
[maven-release-plugin] prepare release 3.1.0
actions-user May 14, 2024
549002c
Merge tag '3.1.0' of https://github.com/quarkiverse/quarkus-logging-json
msillence May 7, 2025
d7e4c8c
upgrade
msillence May 7, 2025
99f8eaf
fix ecs format
msillence May 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/project.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Quarkus Logging JSON
release:
current-version: 1.1.1
next-version: 1.1.2-SNAPSHOT
current-version: 3.1.0
next-version: 3.1.1-SNAPSHOT
Binary file removed .github/release/maven-settings.xml.gpg
Binary file not shown.
73 changes: 33 additions & 40 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build
on:
push:
branches:
- "master"
- "main"
paths-ignore:
- '.gitignore'
- 'CODEOWNERS'
Expand All @@ -13,7 +13,6 @@ on:
- '*.txt'
- '.all-contributorsrc'
pull_request:
types: [opened, synchronize, reopened]
paths-ignore:
- '.gitignore'
- 'CODEOWNERS'
Expand All @@ -23,44 +22,38 @@ on:
- '*.txt'
- '.all-contributorsrc'

jobs:
build:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

runs-on: ubuntu-latest
defaults:
run:
shell: bash

jobs:
build:
name: Build on ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# os: [windows-latest, macos-latest, ubuntu-latest]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11

# - name: Cache SonarCloud packages
# uses: actions/cache@v1
# with:
# path: ~/.sonar/cache
# key: ${{ runner.os }}-sonar
# restore-keys: ${{ runner.os }}-sonar

- name: Get Date
id: get-date
run: |
echo "::set-output name=date::$(/bin/date -u "+%Y-%m")"
shell: bash
- name: Cache Maven Repository
id: cache-maven
uses: actions/cache@v2
with:
path: ~/.m2/repository
# refresh cache every month to avoid unlimited growth
key: maven-repo-${{ runner.os }}-${{ steps.get-date.outputs.date }}

- name: Build and analyze
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

run: mvn -B -Pnative impsort:check formatter:validate verify # org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
- name: Prepare git
run: git config --global core.autocrlf false
if: startsWith(matrix.os, 'windows')

- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
cache: 'maven'

- name: Build with Maven
run: mvn -B clean install -Dno-format

- name: Build with Maven (Native)
run: mvn -B install -Dnative -Dquarkus.native.container-build -Dnative.surefire.skip
8 changes: 8 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ on:
paths:
- '.github/project.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

defaults:
run:
shell: bash

jobs:
release:
runs-on: ubuntu-latest
Expand Down
31 changes: 21 additions & 10 deletions .github/workflows/quarkus-snapshot.yaml
Original file line number Diff line number Diff line change
@@ -1,49 +1,60 @@
name: "Quarkus ecosystem CI"
on:
workflow_dispatch:
watch:
types: [started]

# For this CI to work, ECOSYSTEM_CI_TOKEN needs to contain a GitHub with rights to close the Quarkus issue that the user/bot has opened,
# while 'ECOSYSTEM_CI_REPO_PATH' needs to be set to the corresponding path in the 'quarkusio/quarkus-ecosystem-ci' repository
# For this CI to work, ECOSYSTEM_CI_TOKEN needs to contain a GitHub with rights to close the Quarkus issue that the user/bot has opened,
# while 'ECOSYSTEM_CI_REPO_PATH' needs to be set to the corresponding path in the 'quarkusio/quarkus-ecosystem-ci' repository

env:
ECOSYSTEM_CI_REPO: quarkusio/quarkus-ecosystem-ci
ECOSYSTEM_CI_REPO_FILE: context.yaml
JAVA_VERSION: 11
JAVA_VERSION: 17

#########################
# Repo specific setting #
#########################

ECOSYSTEM_CI_REPO_PATH: quarkus-logging-json
ECOSYSTEM_CI_REPO_PATH: quarkiverse-logging-json

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

defaults:
run:
shell: bash

jobs:
build:
name: "Build against latest Quarkus snapshot"
runs-on: ubuntu-latest
if: github.actor == 'quarkusbot' || github.actor == 'quarkiversebot'
# Allow <ADMIN> to manually launch the ecosystem CI in addition to the bots
if: github.actor == 'quarkusbot' || github.actor == 'quarkiversebot' || github.actor == '<ADMIN>'

steps:
- name: Install yq
run: sudo add-apt-repository ppa:rmescandon/yq && sudo apt update && sudo apt install yq -y
uses: dcarbone/install[email protected]

- name: Set up Java
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{ env.JAVA_VERSION }}

- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: current-repo

- name: Checkout Ecosystem
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: ${{ env.ECOSYSTEM_CI_REPO }}
path: ecosystem-ci

- name: Setup and Run Tests
run: ./ecosystem-ci/setup-and-test
env:
ECOSYSTEM_CI_TOKEN: ${{ secrets.ECOSYSTEM_CI_TOKEN }}
ECOSYSTEM_CI_TOKEN: ${{ secrets.ECOSYSTEM_CI_TOKEN }}
72 changes: 37 additions & 35 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,63 +6,65 @@ on:
paths:
- '.github/project.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

defaults:
run:
shell: bash

jobs:
release:
runs-on: ubuntu-latest
name: release
if: ${{github.event.pull_request.merged == true}}

steps:
- uses: radcortez/project-metadata-action@master
- uses: radcortez/project-metadata-action@main
name: Retrieve project metadata
id: metadata
with:
github-token: ${{secrets.GITHUB_TOKEN}}
metadata-file-path: '.github/project.yml'

- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v3
with:
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}

- uses: actions/[email protected]
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11

- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
cache: 'maven'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE

- name: Configure Git author
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"

- name: Maven release ${{steps.metadata.outputs.current-version}}
- name: Update latest release version in docs
run: |
gpg --quiet --batch --yes --decrypt --passphrase="${{secrets.GPG_PASSPHRASE}}" --output maven-settings.xml .github/release/maven-settings.xml.gpg
git checkout -b release
mvn -B release:prepare -Prelease -DreleaseVersion=${{steps.metadata.outputs.current-version}} -DdevelopmentVersion=${{steps.metadata.outputs.next-version}} -s maven-settings.xml
git checkout ${{github.base_ref}}
git rebase release
mvn -B release:perform -Darguments=-DperformRelease -Prelease -s maven-settings.xml
mvn -B -ntp -pl docs -am generate-resources -Denforcer.skip -Dformatter.skip -Dimpsort.skip
if ! git diff --quiet docs/modules/ROOT/pages/includes/attributes.adoc; then
git add docs/modules/ROOT/pages/includes/attributes.adoc
git commit -m "Update the latest release version ${{steps.metadata.outputs.current-version}} in documentation"
fi

- name: Push changes to ${{github.base_ref}}
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{github.base_ref}}
- name: Maven release ${{steps.metadata.outputs.current-version}}
run: |
mvn -B release:prepare -Prelease -DreleaseVersion=${{steps.metadata.outputs.current-version}} -DdevelopmentVersion=${{steps.metadata.outputs.next-version}}
mvn -B release:perform -Darguments=-DperformRelease -DperformRelease -Prelease
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

- name: Push tags
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tags: true
- name: Push changes to ${{github.base_ref}} branch
run: |
git push
git push origin ${{steps.metadata.outputs.current-version}}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

# Log file
*.log
quarkus.log.*

# BlueJ files
*.ctxt
Expand Down
20 changes: 13 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,21 @@
# Quarkus Logging Json
Quarkus logging extension outputting the logging in json.

## Version to use
| Quarkus Version | Use version |
|-------|-------|
| 3.x.x | 3.x.x |
| 2.x.x | 1.x.x, 2.x.x |

# Configuration
The extension is enabled by default, when added to the project.
Can be disabled using configuration: `quarkus.log.console.json=false`
The extension is enabled by default for console, when added to the project.
Console logging can be disabled using configuration: `quarkus.log.json.console.enable=false`

To see additional configuration options take a look at [Config](https://quarkiverse.github.io/quarkiverse-docs/quarkus-logging-json/dev/index.html)

## Elastic Common Scheme
```properties
quarkus.log.console.json.log-format=ecs
quarkus.log.json.log-format=ecs
```

## Google Cloud Platform Scheme
Expand All @@ -26,10 +32,10 @@ quarkus.log.console.json.log-format=gcp
# Add additional fields to all log messages
If you want to add a static field to all the log message, that is possible using the configuration.
```properties
quarkus.log.console.json.additional-field.serviceName.value=service-a
quarkus.log.json.additional-field.serviceName.value=service-a
# type is by default STRING - Other is INT, LONG, FLOAT, DOUBLE
quarkus.log.console.json.additional-field.buildNumber.type=INT
quarkus.log.console.json.additional-field.buildNumber.value=42
quarkus.log.json.additional-field.buildNumber.type=INT
quarkus.log.json.additional-field.buildNumber.value=42
```

# Structured argument
Expand All @@ -46,7 +52,7 @@ If you want to add your own custom way to handle the LogRecords.
You can create your own implementations of `io.quarkiverse.loggingjson.JsonProvider`, and provide it using CDI.
Example implementation:
```java
import javax.inject.Singleton;
import jakarta.inject.Singleton;
import java.io.IOException;

import io.quarkiverse.loggingjson.JsonProvider;
Expand Down
23 changes: 14 additions & 9 deletions deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkiverse.loggingjson.jhc</groupId>
<artifactId>quarkus-logging-json-parent</artifactId>
<version>1.1.2-0-SNAPSHOT</version>
<version>3.1.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand All @@ -18,18 +18,12 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-jackson-deployment</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-jsonb-deployment</artifactId>
<scope>compile</scope>
<artifactId>quarkus-arc-deployment</artifactId>
</dependency>
<dependency>
<groupId>io.quarkiverse.loggingjson.jhc</groupId>
<artifactId>quarkus-logging-json</artifactId>
<version>1.1.2-0-SNAPSHOT</version>
<version>3.1.0</version>
</dependency>
<!-- test dependencies -->
<dependency>
Expand All @@ -42,6 +36,17 @@
<artifactId>quarkus-junit5-internal</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-jackson</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-jsonb</artifactId>
<scope>test</scope>
</dependency>

</dependencies>

<build>
Expand Down
Loading
Loading