Elle Mouton
755ad49440
build: Append commit hash to the main LND context
...
It can be disabled via the new `logging.no-commit-hash` config option.
2024-12-02 09:23:06 +02:00
Elle Mouton
ab7aae0708
multi: rename nolint:lll to nolint:ll
...
Find and replace all nolint instances refering to the `lll` linter and
replace with `ll` which is the name of our custom version of the `lll`
linter which can be used to ignore log lines during linting.
The next commit will do the configuration of the custom linter and
disable the default one.
2024-12-02 09:14:21 +02:00
Elle Mouton
b98fc168ec
go.mod+build: update btclog dep
2024-11-27 10:44:01 +02:00
Elle Mouton
e547d21920
multi: update log file max num and size defaults
2024-10-30 13:30:04 +02:00
Elle Mouton
22c13790df
build+config: move maxlogfiles and maxfilesize to logger config
...
Add deprecation notices but continue to read both.
2024-10-30 13:30:04 +02:00
Elle Mouton
3adbdbb39a
multi: move logcompressor to logging.file.compressor
...
This is not a breaking change since the logcompressor config option has
not been released yet.
2024-10-30 13:30:04 +02:00
Elle Mouton
1886d3865b
build: extract File logging options into own struct
...
In preparation for extending LoggerConfig with file specific config.
2024-10-30 13:16:39 +02:00
Elle Mouton
0512357c17
build: dedup logging config
...
Move all shared code to config.go which has no build tags.
2024-10-30 13:15:34 +02:00
Elle Mouton
4c5e5653e4
build: rename config.go file
...
to config_prod.go in preparation for adding a shared config.go file.
2024-10-30 13:15:33 +02:00
Elle Mouton
30d39ac595
build+sample_conf: option to print log call-site
2024-10-22 17:07:50 +02:00
Elle Mouton
a8da3e525b
build: add styling option for console logger
...
This will only be available when the dev build tag is set
2024-10-22 17:03:55 +02:00
Elle Mouton
5ed7bf1b71
config: add logging config options
...
This commit adds config options so that users can for both the console
logger and the file logger set the following things:
- disable the logger
- omit timestamps from log lines.
2024-10-22 17:03:55 +02:00