Skip to content

Commit

Permalink
Android doc custom logger (#2927) (#2928)
Browse files Browse the repository at this point in the history
* Add information about replacing BacktraceLogger with custom implementation

* Update configuration.md

---------

Co-authored-by: Bartosz Litwiniuk <[email protected]>
Co-authored-by: Bartosz Litwiniuk <[email protected]>
  • Loading branch information
3 people authored Sep 5, 2024
1 parent 988489e commit c3b08ec
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,14 @@ To enable displaying logs from inside the library, set the level from which info
BacktraceLogger.setLevel(LogLevel.DEBUG);
```

You can replace internal BacktraceLogger with your custom implementation using code below.

```java
BacktraceLogger.setLogger(customLoggerInstance);
```

Your custom logger implementation has to implement [Logger](https://github.com/backtrace-labs/backtrace-android/blob/master/backtrace-library/src/main/java/backtraceio/library/logger/Logger.java) interface.

## Monitoring Custom Threads

The backtrace-android library provides structures and methods to monitor the blocking of your own threads.
Expand Down

0 comments on commit c3b08ec

Please sign in to comment.