Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/logrecorder/logrecorder
https://github.com/logrecorder/logrecorder
java jvm kotlin logging test-automation testing
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/logrecorder/logrecorder
- Owner: logrecorder
- License: apache-2.0
- Created: 2017-01-09T17:54:28.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-11-16T11:27:34.000Z (about 1 year ago)
- Last Synced: 2023-12-28T07:55:37.645Z (12 months ago)
- Topics: java, jvm, kotlin, logging, test-automation, testing
- Language: Kotlin
- Homepage:
- Size: 364 KB
- Stars: 16
- Watchers: 6
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![License](https://img.shields.io/badge/License-Apache%20License%202.0-brightgreen.svg)](http://www.apache.org/licenses/LICENSE-2.0.txt)
# LogRecorder
JUnit5/Kotest extension(s) as well as pure programmatic for recording and asserting logged messages in tests.
Features:
- Junit5 and Kotest extensions as well as pure programmatic usage for recording:
- [Logback](https://logback.qos.ch) loggers
- [Log4j 2](https://logging.apache.org/log4j/2.x/index.html) loggers
- Java Util Logging (JUL) loggers
- Assertion DSL for validating recorded log messagesSee [Documentation](documentation) for more details.
## Artifacts
As of `2022-04-01` all artifacts are published with a Group-ID of `io.github.logrecorder` and the major version was
increased to `2.x.x`. Previously we used to publish under our now deprecated umbrella Group-ID of `info.novatec.testit`.Since version `2.5.0` a BOM is provided for easy artifact version management.
**Gradle**
```Kotlin
// regular way
dependencies {
// import a BOM
testImplementation(platform("io.github.logrecorder:logrecorder-bom:${property("logRecorderVersion")}"))// define dependencies without versions
testImplementation("io.github.logrecorder:logrecorder-junit5")
testImplementation("io.github.logrecorder:logrecorder-logback")
testImplementation("io.github.logrecorder:logrecorder-assertions")
}// Spring Boot dependency management plugin
dependencyManagement {
imports {
mavenBom("io.github.logrecorder:logrecorder-bom:${property("logRecorderVersion")}")
}
}
```**Maven**
```XML
io.github.logrecorder
logrecorder-bom
${logrecorder.version}
pom
import
```
## Licensing
LogRecorder is licensed under [The Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt).
## Sponsoring
LogRecorder is mainly developed by [Novatec Consulting GmbH](http://www.novatec-gmbh.de/), a German consultancy firm
that drives quality in software development projects.