Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/danilomurer/logback-exercise
- Owner: DaniloMurer
- License: gpl-3.0
- Created: 2022-02-08T13:26:50.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-02-09T13:50:15.000Z (over 2 years ago)
- Last Synced: 2024-10-11T15:45:13.827Z (28 days ago)
- Language: Java
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`