Skip to content

Commit

Permalink
Update dependencies (#2)
Browse files Browse the repository at this point in the history
* Update dependencies

* Update dependencies

* Reformat demo app

* Fix release date

---------

Co-authored-by: Bartosz Litwiniuk <>
Co-authored-by: Bartosz Litwiniuk <[email protected]>
  • Loading branch information
BartoszLitwiniuk and Bartosz Litwiniuk authored Jul 3, 2023
1 parent 28cb8b2 commit b275f0d
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 21 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
# Backtrace Log4j Release Notes
# Backtrace Log4j Release Notes

## Version 0.9.6 - 26.06.2023
- Update dependencies

## Version 0.9.0 - 30.03.2020
- Initial release
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Gradle
```
dependencies {
implementation 'com.github.backtrace-labs.backtrace-log4j:backtrace-log4j:0.9.0'
implementation 'com.github.backtrace-labs.backtrace-log4j:backtrace-log4j:0.9.6'
}
```

Expand All @@ -16,7 +16,7 @@ dependencies {
<dependency>
<groupId>com.github.backtrace-labs.backtrace-log4j</groupId>
<artifactId>backtrace-log4j</artifactId>
<version>0.9.0</version>
<version>0.9.6</version>
</dependency>
```

Expand Down
17 changes: 9 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,20 @@ plugins {
apply from: 'publish.gradle'

group = 'com.github.backtrace.io'
version = '0.9.0'
version = '0.9.6'

repositories {
jcenter()
mavenCentral()
}

dependencies {
implementation 'com.github.backtrace-labs.backtrace-java:backtrace-java:0.9.0'
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.9'
implementation group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.30'
testImplementation 'org.powermock:powermock-api-mockito2:2.0.0'
testImplementation 'org.powermock:powermock-module-junit4:2.0.0'
testImplementation 'net.jodah:concurrentunit:0.4.4'
implementation 'com.github.backtrace-labs.backtrace-java:backtrace-java:0.9.6'
implementation group: 'org.slf4j', name: 'slf4j-api', version: '2.0.7'
implementation group: 'org.slf4j', name: 'slf4j-log4j12', version: '2.0.7'
testImplementation 'org.powermock:powermock-api-mockito2:2.0.9'
testImplementation 'org.powermock:powermock-module-junit4:2.0.9'
testImplementation 'net.jodah:concurrentunit:0.4.6'
// Use JUnit test framework
testImplementation 'junit:junit:4.12'
testImplementation 'junit:junit:4.13.2'
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION_NAME=0.9.0
VERSION_NAME=0.9.6

GROUP=com.github.backtrace-labs.backtrace-log4j

Expand Down
14 changes: 6 additions & 8 deletions src/demo/src/app/Demo.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,17 @@ public static void main(String[] args) throws InterruptedException {

BasicConfigurator.configure();
Logger logger = Logger.getLogger(Demo.class);
// logger.info("test");
try{

try {
int x = 0;
int y = 0;
int w = x/(y);
}
catch (Exception exception){
int w = x / (y);
} catch (Exception exception) {
logger.error("Welcome from MAIN - log4j", exception);
}

Appender x = (Appender)Logger.getRootLogger().getAppender("backtrace");
// x.getBacktraceClient().close();
Appender x = (Appender) Logger.getRootLogger().getAppender("backtrace");
x.await();
System.out.println("WORKS");
System.out.println("End");
}
}
2 changes: 1 addition & 1 deletion src/test/java/backtrace/io/BacktraceLoggerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public BacktraceResult onRequest(BacktraceData data) {
}

@Test
public void allowForMessagesFromOtherThanBacktraceLogger() throws TimeoutException {
public void allowForMessagesFromOtherThanBacktraceLogger() throws TimeoutException, InterruptedException {
// GIVEN
Waiter waiter = new Waiter();
BacktraceAppenderMock appender = new BacktraceAppenderMock();
Expand Down

0 comments on commit b275f0d

Please sign in to comment.