databricks-cli/libs/log
Pieter Noordhuis 1b47dd3af7
Trim log source field to basename of file (#273)
This makes logs more readable and avoids leaking paths.

Before:
```
time=2023-03-22T16:38:30.238+01:00 level=INFO source=/Users/pieter.noordhuis/dev/bricks/bundle/phases/phase.go:30 msg="Phase: initialize"
time=2023-03-22T16:38:31.303+01:00 level=INFO source=/Users/pieter.noordhuis/dev/bricks/bundle/phases/phase.go:30 msg="Phase: build"
time=2023-03-22T16:38:31.303+01:00 level=INFO source=/Users/pieter.noordhuis/dev/bricks/bundle/phases/phase.go:30 msg="Phase: deploy"
```

After:
```
time=2023-03-22T17:02:47.290+01:00 level=INFO source=phase.go:30 msg="Phase: initialize"
time=2023-03-22T17:02:48.171+01:00 level=INFO source=phase.go:30 msg="Phase: build"
time=2023-03-22T17:02:48.171+01:00 level=INFO source=phase.go:30 msg="Phase: deploy"
```
2023-03-23 08:56:39 +01:00
..
context.go Add structured logging infrastructure (#246) 2023-03-16 14:46:53 +01:00
levels.go Add structured logging infrastructure (#246) 2023-03-16 14:46:53 +01:00
logger.go Add structured logging infrastructure (#246) 2023-03-16 14:46:53 +01:00
replace_attr.go Trim log source field to basename of file (#273) 2023-03-23 08:56:39 +01:00
replace_attr_test.go Trim log source field to basename of file (#273) 2023-03-23 08:56:39 +01:00
sdk.go Add structured logging infrastructure (#246) 2023-03-16 14:46:53 +01:00
source.go Trim log source field to basename of file (#273) 2023-03-23 08:56:39 +01:00
source_test.go Trim log source field to basename of file (#273) 2023-03-23 08:56:39 +01:00