This commit is contained in:
Martin Pander
2026-02-07 20:44:58 +01:00
parent e35f480248
commit 980c8eb309
5 changed files with 4 additions and 5 deletions

1
.gitignore vendored
View File

@@ -1,5 +1,4 @@
.DS_Store
app.log
test/taskchampion.sqlite3
tasksquire
test/*.sqlite3*

View File

@@ -201,7 +201,7 @@ ts.StopTask(&task)
## Development Notes
- **Logging**: Application logs to `app.log` in current directory
- **Logging**: Application logs to `/tmp/tasksquire.log`
- **Virtual Tags**: Filter out Taskwarrior virtual tags (see `virtualTags` map)
- **Color Parsing**: Custom color parsing from Taskwarrior config format
- **Debugging**: VSCode launch.json configured for remote debugging on port 43000

View File

@@ -156,7 +156,7 @@ The `Task` struct uses custom `MarshalJSON()` and `UnmarshalJSON()` to handle:
### Logging
- Uses `log/slog` for structured logging
- Logs written to `app.log` in current directory
- Logs written to `/tmp/tasksquire.log`
- Errors logged but execution typically continues (graceful degradation)
- Log pattern: `slog.Error("message", "key", value)`

View File

@@ -61,7 +61,7 @@ Tasksquire respects your existing Taskwarrior configuration (`.taskrc`). It look
2. `$HOME/.taskrc`
3. `$HOME/.config/task/taskrc`
Logging is written to `app.log` in the current working directory.
Logging is written to `/tmp/tasksquire.log`.
## Development Conventions

View File

@@ -45,7 +45,7 @@ func main() {
ctx := context.Background()
common := common.NewCommon(ctx, ts, tws)
file, err := os.OpenFile("app.log", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
file, err := os.OpenFile("/tmp/tasksquire.log", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
if err != nil {
log.Fatalf("failed to open log file: %v", err)
}