Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/danilomurer/logback-exercise

Project to exercise logback a bit
https://github.com/danilomurer/logback-exercise

Last synced: 4 days ago
JSON representation

Project to exercise logback a bit

Awesome Lists containing this project

README

        

# logback-exercise
Project to exercise logback a bit

## Setup

For the Mail Appender to work, you need to create following filter file under `src/main/filters/logback_exercise.properties`:
```properties
smtp.host=sample.host.net
smtp.port=587
[email protected]
smtp.password=supersecretpassword
[email protected]
[email protected]
```

## Usage

To run this project simply build the `.jar` file with `mvn clean install`.

To run the `jar` file execute following command:
```bash
java -jar target/logback-exercise-1.0.0.jar
```

## Troubleshooting

### Google Mail

If you want to send logback mails over the Google SMTP, please make sure of following:

- You need to have [Less secure app access](https://myaccount.google.com/lesssecureapps) enabled.
- Make sure you use `25` as port and not `587`