Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/binance/binance-java-logback

Customized java logback framework
https://github.com/binance/binance-java-logback

binance java logback-framework

Last synced: about 1 month ago
JSON representation

Customized java logback framework

Awesome Lists containing this project

README

        

# Binance custom logback-classic

This is an adaptation of `logback-classic` framework, but integrated with the following major customizations:
- Applies `TimeBasedRollingPolicy` for the created log file at working path's `./logs` folder;
- Log pattern is `"%date{yyyy-MM-dd HH:mm:ss.SSS}[%epoch] | %-5level | %-10thread{10} | %-36logger{36} - %msg%n"`;

Logging example:
```
2023-02-27 18:36:42.912[1677490602912] | INFO | main | c.b.c.client.utils.RequestHandler - GET https://api.binance.com/api/v3/account?`
```

For complete details, please refer to `src/main/resources/logback.xml`

## Installation

Add the following dependency to your `pom.xml`:

```

io.github.binance
binance-logback
VERSION

```

Replace `VERSION` with a published version.

## Contributing
Contributions are welcome! If you've found a bug within this project, please open an issue to discuss what you would like to change.