Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
ee2741a
Update .gitignore to include IDE, build and temp files
mercyblitz Mar 14, 2026
7a1de32
Add Contributor Code of Conduct
mercyblitz Mar 14, 2026
a44f03a
Add detailed README for Microsphere Logging
mercyblitz Mar 14, 2026
8f84d89
Add Maven multi-module logging project poms
mercyblitz Mar 14, 2026
f03f16d
Remove OSSRH distribution and snapshot repos
mercyblitz Mar 14, 2026
b52e7ae
Add Maven wrapper and GitHub Actions CI workflows
mercyblitz Mar 14, 2026
63815e7
Bump project version to 0.2.0-SNAPSHOT
mercyblitz Mar 14, 2026
f4d592b
Add logging core, JDK impl, JMX adapters & tests
mercyblitz Mar 14, 2026
84e6cb9
Add classloader-aware service loading for Logging
mercyblitz Mar 14, 2026
b745fba
Add LoggingMXBeanRegistrar and update tests
mercyblitz Mar 14, 2026
908472e
Update Codecov slug and README badge
mercyblitz Mar 14, 2026
6073f30
Add logging-level resolver and Logback module
mercyblitz Mar 14, 2026
c2fff70
Make LoggingMXBeanRegistrar abstract
mercyblitz Mar 14, 2026
0c33e22
Implement LogbackLogging and add tests
mercyblitz Mar 14, 2026
5d6e0c7
Introduce LoggerUtils and refactor LogbackLogging
mercyblitz Mar 14, 2026
03a175a
Add LoggingUtils and integrate prioritized Logging
mercyblitz Mar 14, 2026
2ad1720
Configure JUnit 4/Jupiter and add test deps
mercyblitz Mar 14, 2026
8b23a9f
Add Logback logging service provider
mercyblitz Mar 14, 2026
a85cf3a
Add JUnit rule to iterate logging levels
mercyblitz Mar 14, 2026
9cc8899
Assert loggingLevelsRule is not null
mercyblitz Mar 14, 2026
e373829
Add JUnit Jupiter LoggingLevelsTest & extension
mercyblitz Mar 14, 2026
350172f
Add JUnit Vintage and clean javadoc
mercyblitz Mar 15, 2026
ae98a69
Introduce LoggingLevels JUnit extensions
mercyblitz Mar 15, 2026
6b7d0c1
Add class-based logger test assertion
mercyblitz Mar 15, 2026
c80bf8c
Simplify parent logger name resolution
mercyblitz Mar 15, 2026
6e11c4a
Merge pull request #2 from microsphere-projects/dev
mercyblitz Mar 15, 2026
40120a8
Use Collections.emptyList/emptySet in test
mercyblitz Mar 15, 2026
fbb1858
Move JUnit entries earlier in POM
mercyblitz Mar 15, 2026
9f09dae
Update logging deps and test compatibility
mercyblitz Mar 15, 2026
d7b33dd
Update Codecov badge to dev-1.x branch
mercyblitz Mar 15, 2026
c3e7d97
Update README module list and descriptions
mercyblitz Mar 15, 2026
5495652
Reorder and update module list in README
mercyblitz Mar 15, 2026
f2c38f0
Merge pull request #3 from mercyblitz/dev-1.x
mercyblitz Mar 15, 2026
c36f01f
Add Log4j2 logging module
mercyblitz Mar 15, 2026
bd88b86
Merge pull request #4 from microsphere-projects/dev
mercyblitz Mar 15, 2026
b495751
Add Log4j2 logging module and tests
mercyblitz Mar 16, 2026
0f50a05
Add TestingLogging and update tests to use it
mercyblitz Mar 16, 2026
3598c82
Add JDK logging module and refactor logging
mercyblitz Mar 16, 2026
a5b91eb
Return ALL_LEVELS in LogbackLogging
mercyblitz Mar 16, 2026
0359674
Consolidate PRIORITY assertion into testConstants
mercyblitz Mar 16, 2026
a988933
Add tests for Log4j2 constants and priority
mercyblitz Mar 16, 2026
6d93f98
Use service loader in Log4j2 test
mercyblitz Mar 16, 2026
0fe0e14
Merge pull request #7 from microsphere-projects/dev
mercyblitz Mar 16, 2026
9bd0bee
Rename logging modules and JDK to JavaLogging
mercyblitz Mar 17, 2026
92bda68
Update README with renamed logging modules
mercyblitz Mar 17, 2026
a05aed0
Add prioritized Logging.load() and tests
mercyblitz Mar 17, 2026
42ca564
Use LoggingUtils.load() in test setup
mercyblitz Mar 17, 2026
597d8de
Use LoggingUtils.load() in JavaLoggingTest
mercyblitz Mar 17, 2026
40832c8
Use LoggingUtils.load in Log4j2 test
mercyblitz Mar 17, 2026
059e329
Remove annotations dependency; make core required
mercyblitz Mar 17, 2026
7859192
Add microsphere-logging-examples module
mercyblitz Mar 17, 2026
e288c94
Add versions, compatibility, and examples
mercyblitz Mar 17, 2026
ab021b3
Document project intro and features in README
mercyblitz Mar 17, 2026
9d97420
Merge pull request #9 from microsphere-projects/dev
mercyblitz Mar 17, 2026
4e5e191
README: add Log4j 1.2 and bump Log4j2
mercyblitz Mar 17, 2026
23a9e3f
Merge pull request #10 from microsphere-projects/dev
mercyblitz Mar 17, 2026
23b8d6e
Remove commons-logging from parent POM
mercyblitz Mar 17, 2026
6b48f34
Remove Log4j 1.x from logging parent
mercyblitz Mar 17, 2026
f5f830d
Merge branch 'dev-1.x' into dev
mercyblitz Mar 17, 2026
72668c0
Add Log4j 1.2.17 property and dependency
mercyblitz Mar 17, 2026
c09a939
Fix module name typo in Log4j2 pom
mercyblitz Mar 17, 2026
463431d
Merge branch 'dev' of https://github.com/microsphere-projects/microsp…
mercyblitz Mar 17, 2026
0d07a72
Adjust CI workflow Java matrix and PR branches
mercyblitz Mar 17, 2026
03905e8
Set maven-publish default to 1.0.0 and Java 11
mercyblitz Mar 17, 2026
edd9838
Update Log4j comments in POM
mercyblitz Mar 17, 2026
443324b
Add microsphere-log4j module and integrate
mercyblitz Mar 17, 2026
4dd5845
Rename Log4j2Logger to Log4jLogger
mercyblitz Mar 17, 2026
991752c
Add root logger name and default parent logic
mercyblitz Mar 17, 2026
67286fb
Add LoggingTest; use ordered map in TestingLogging
mercyblitz Mar 17, 2026
a42c9ea
Add test for empty logger parent name
mercyblitz Mar 17, 2026
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
47 changes: 47 additions & 0 deletions .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Maven Build

on:
push:
branches: [ 'dev' ]
pull_request:
branches: [ 'dev' , 'release' ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8', '11' , '17' , '21' ,' 25' ]
steps:
- name: Checkout Source
uses: actions/checkout@v5

- name: Setup JDK ${{ matrix.Java }}
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: maven

- name: Build with Maven
run: ./mvnw
--batch-mode
--update-snapshots
--file pom.xml
-Drevision=0.0.1-SNAPSHOT
test
--activate-profiles test,coverage

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: microsphere-projects/microsphere-logging
53 changes: 53 additions & 0 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Maven Publish

on:
push:
branches: [ 'release' ]
workflow_dispatch:
inputs:
revision:
description: 'The version to publish'
required: true
default: '1.0.0-SNAPSHOT'

jobs:
build:
runs-on: ubuntu-latest
if: ${{ inputs.revision }}
steps:
- name: Checkout Source
uses: actions/checkout@v5

- name: Setup Maven Central Repository
uses: actions/setup-java@v5
with:
java-version: '11'
distribution: 'temurin'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
cache: maven

- name: Publish package
run: mvn
--batch-mode
--update-snapshots
--file pom.xml
-Drevision=${{ inputs.revision }}
-Dgpg.skip=true
deploy
--activate-profiles publish,ci
env:
MAVEN_USERNAME: ${{ secrets.OSS_SONATYPE_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSS_SONATYPE_PASSWORD }}
SIGN_KEY_ID: ${{ secrets.OSS_SIGNING_KEY_ID_LONG }}
SIGN_KEY: ${{ secrets.OSS_SIGNING_KEY }}
SIGN_KEY_PASS: ${{ secrets.OSS_SIGNING_PASSWORD }}
47 changes: 46 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,49 @@

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*

# maven ignore
target/
!.mvn/wrapper/*

# eclipse ignore
.settings/
.project
.classpath

# idea ignore
.idea/
.idea
*.ipr
*.iml
*.iws

# temp ignore
*.log
*.cache
*.diff
*.patch
*.tmp

# system ignore
.DS_Store
Thumbs.db
*.orig

# flatten ignore
.flattened-pom.xml

# license check result
license-list

# grpc compiler
compiler/gradle.properties
compiler/build/*
compiler/.gradle/*

# Tomcat
.extract
.java-version

# others
build.txt
3 changes: 3 additions & 0 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
wrapperVersion=3.3.4
distributionType=only-script
distributionUrl=https://maven.aliyun.com/repository/public/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip
48 changes: 48 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Contributor Code of Conduct

As contributors and maintainers of this project, and in the interest of
fostering an open and welcoming community, we pledge to respect all people who
contribute through reporting issues, posting feature requests, updating
documentation, submitting pull requests or patches, and other activities.

We are committed to making participation in this project a harassment-free
experience for everyone, regardless of level of experience, gender, gender
identity and expression, sexual orientation, disability, personal appearance,
body size, race, ethnicity, age, religion, or nationality.

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery
* Personal attacks
* Trolling or insulting/derogatory comments
* Public or private harassment
* Publishing other's private information, such as physical or electronic
addresses, without explicit permission
* Other unethical or unprofessional conduct

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

By adopting this Code of Conduct, project maintainers commit themselves to
fairly and consistently applying these principles to every aspect of managing
this project. Project maintainers who do not follow or enforce the Code of
Conduct may be permanently removed from the project team.

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community.

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting a project maintainer at [mercyblitz@gmail.com](mailto:mercyblitz@gmail.com). All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. Maintainers are
obligated to maintain confidentiality with regard to the reporter of an
incident.


This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 1.3.0, available at https://www.contributor-covenant.org/version/1/3/0/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org
Loading
Loading