Skip to content

Commit

Permalink
add debug profile
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkolson committed Mar 29, 2023
1 parent ff02d53 commit 119bfae
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ To grant "Full Disk Access" to your terminal app, open up the Control Panel->Pri

**This application does NOT perform any sort of read or modification operation on your actual notes database, rather it makes a copy of it and reads from its copy.**

### Enable Logging

If something isn't working, it might help to see what the application is doing. You can do so by passing `quarkus.profile=debug` as a JVM argument:

```bash
java -Dquarkus.profile=debug -jar apple-notes-liberator.jar
```

This will result in a log file named `apple-notes-liberator.log` being generated in the directory where you executed the command.

## Output format

Currently, the only supported output format is json, though support for html and csv is planned.
Expand Down
7 changes: 6 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
quarkus.datasource.jdbc.url=jdbc:sqlite:notes.sqlite
quarkus.log.level=ERROR
quarkus.log.level=OFF
quarkus.log.console.enable=false
quarkus.banner.enabled=false
quarkus.hibernate-orm.validate-in-dev-mode=false

%debug.quarkus.log.category."de.hamburgchimps".level=DEBUG
%debug.quarkus.log.file.enable=true
%debug.quarkus.log.file.path=apple-notes-liberator.log

0 comments on commit 119bfae

Please sign in to comment.