Commit Graph

132 Commits

Author SHA1 Message Date
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
1e39e3758e
build: apply log type flags in NewDefaultLogHandlers
So that the logging config "Disable" options and log type flags are all
handled in one place. Other repo's can then re-use this nicely.
2024-10-26 14:15:14 +02:00
Elle Mouton
30d39ac595
build+sample_conf: option to print log call-site 2024-10-22 17:07:50 +02:00
Elle Mouton
49bfbecc4e
build: add CriticalS to ShutdownLogger
Ensure that the ShutdownLogger correctly calls shutdown for the new
CriticalS method added to the btclog.Logger.
2024-10-22 17:03:56 +02:00
Elle Mouton
ba1ce84b27
build: update prefixed logger
Such that it implements the new expanded interface of btclog v2.
2024-10-22 17:03:56 +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
cfa7fceb0b
build+config: add default handler constructor
Since most of our projects will use the same handler duo and apply the
config options the same way, let's make our lives easier and add a
default handler constructor.
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
Elle Mouton
cd697913ef
build: switch to slog Handlers
Start using the new slog handlers. With this commit we also remove the
need for the LogWriter since we let our LogRotator implement io.Writer
and pass that in to our log file handler.
2024-10-22 17:03:51 +02:00
Elle Mouton
9a9761008c
build: add handler set implementations
This commit then also adds an implementation of the btclog.Handler
interface called `handlerSets` which basically lets us have a Handler
backed by many Handlers (we need one for the stdout and one for our log
file).
2024-10-22 15:29:34 +02:00
Elle Mouton
387a1a8831
build: separate sublogger and rotator pipe management
These are two separate concerns. So this commit splits them up and just
passes a LogWriter from the one to the other. This will become cleaner
in an upcoming commit where the Rotator will implement io.Writer and
there will no longer be a need for LogWriter.
2024-10-22 15:19:58 +02:00
Elle Mouton
ec5b39c120
build: move LevelSubLogger to own file
To make the upcoming commits easier to review and for general code
organisation.
2024-10-22 15:17:10 +02:00
Oliver Gugger
dc32a48246
build: bump master to version v0.18.99-beta
As is customary when preparing for the next major (or minor) release, we
bump the version to .99 to allow us to set the minimum required version
to something like v0.18.4-beta in lndclient and it would still accept
the master branch (even if that target version hasn't been
released/tagged yet).
2024-09-19 09:33:54 +02:00
Jonathan Harvey-Buschel
b3c25166ed
build+mod: add zstd compressor support 2024-09-12 12:31:03 -04:00
Jonathan Harvey-Buschel
f360532eb1
lnd+build: add logcompressor flag 2024-09-12 12:31:02 -04:00
Olaoluwa Osuntokun
1a8d196607
build: bump version to v0.18.0 beta 2024-05-30 17:49:17 +09:00
Olaoluwa Osuntokun
1b6f42a107
build: bump version to v0.18.0-beta.rc4 2024-05-28 10:46:15 +09:00
Olaoluwa Osuntokun
74237f2c24
build: bump verison to v0.18.0-beta.rc3 2024-05-22 11:44:24 -07:00
Olaoluwa Osuntokun
954ad4a329
build: bump version to v0.18.0-beta.rc2 2024-05-06 18:10:52 -07:00
Olaoluwa Osuntokun
3b6103d29f
build: bump version to v0.18.0-beta.rc1 2024-04-26 19:19:23 -07:00
Oliver Gugger
10a6861bc9
build: bump version to v0.17.99
In this commit, we bump the version of the master branch to v0.17.99.
This reflects the fact that master will be a super set of all the minor
releases until v0.18, and will also include changes towards v0.18.
2024-03-01 10:29:04 +01:00
ffranr
cd566eb097
multi: fix fmt.Errorf error wrapping
Refactor fmt.Errorf usage to correctly wrap errors instead of using
non-wrapping format verbs.
2024-02-27 11:13:40 +00:00
Olaoluwa Osuntokun
2fb150c8fe
build: bump version to v0.17.0 2023-10-03 10:20:31 -07:00
Olaoluwa Osuntokun
4e6bb71c0f
build: bump version to v0.17.0 rc6 2023-09-28 12:00:41 -05:00
Olaoluwa Osuntokun
f63a2b9507
build: bump version to v0.17.0 rc5 2023-09-26 16:11:45 -05:00
Olaoluwa Osuntokun
8948dfa113
build: bump version to v0.17.0 rc4 2023-09-18 13:58:41 -07:00
Olaoluwa Osuntokun
1628240960
build: bump version to v0.17.0 rc3 2023-09-12 15:13:40 -07:00
Olaoluwa Osuntokun
13568fd5b0
build: bump version to v0.17.0-rc2 (#7942) 2023-08-30 20:14:25 -07:00
Olaoluwa Osuntokun
dde1495e1d
build: bump Go version to v1.21.0, lnd version to v0.17.0 rc1 (#7914)
* build: update Go version to 1.21.0

* build: bump version to v0.17.0 rc1
2023-08-23 17:33:11 -07:00
Olaoluwa Osuntokun
febf1ab0d5
build: bump version to v0.16.99
In this commit, we bump the version of the master branch to v0.16.99.
This reflects the fact that master will be a super set of all the minor
releases until v0.17, and will also include changes towards v0.17.
2023-04-04 19:51:15 -07:00
Oliver Gugger
218cff41b7
build: bump to version v0.16.0-beta final 2023-03-29 14:30:11 +02:00
Oliver Gugger
e9b21c5f64
build: bump version to v0.16.0-rc5
Because a tag for RC4 was previously pushed but without bumping the
version first, we need to skip RC4 as we can't replace already pushed
git tags without causing issues.
2023-03-23 16:43:38 +01:00
Olaoluwa Osuntokun
840c939464
build: bump version to v0.16.0-rc3 2023-03-10 19:09:32 -08:00
Olaoluwa Osuntokun
8f4fc29fc1
build: bump version to v0.16.0-rc2 2023-03-06 11:24:37 -08:00
Olaoluwa Osuntokun
036a0144cb
build: bump version to v0.16.0-rc1 2023-02-23 15:36:51 -08:00
Matt Morehouse
beb4d8c4df
build: remove go-fuzz dependency and references
We don't need go-fuzz now that we use native fuzzing.
2022-11-11 10:44:37 -06:00
positiveblue
5924964a9b
build: get binary build info from debug/buildinfo
Since `go1.18` the runtime has a package that provides information about module
versions, version control information, and build flags embedded in executable
files built by the go command.

The new packages allows us to get information needed by the `version` command
without having to rely on `ldflags` set at build time.

This can be really helpful while debugging errors from people using custom
binaries. For example a build from master.
2022-10-17 00:52:37 -07:00
Olaoluwa Osuntokun
67a6bb5ecf
build: bump version to v0.15.99
We forgot to do this after 0.15 was tagged, but usually we use a x.99
version to indicate that the commits in master are between releases.
This might also make it easier to help identify exactly which version a
user is running in issue reports.

[skip-ci]
2022-08-11 17:36:43 -07:00
Olaoluwa Osuntokun
5c36d96c9c
build: bump version to v0.15.0-beta 2022-06-23 10:37:58 -07:00
Olaoluwa Osuntokun
39b522b878
build: bump version to v0.15.0-beta.rc6 2022-06-10 16:11:19 -05:00
Olaoluwa Osuntokun
f66463bb05
build: bump version to v0.15.0-beta.rc5 2022-06-08 12:59:03 -07:00
Olaoluwa Osuntokun
12eddae47a
build: bump version to v0.15.0-beta.rc4 2022-06-02 14:47:18 -07:00
Olaoluwa Osuntokun
08e4e66574
build: bump version to v0.15.0-beta.rc3 2022-05-23 18:42:48 -07:00
Olaoluwa Osuntokun
164a9c6f68
build: bump version to v0.15.0-beta.rc2 2022-05-20 00:08:28 -07:00
Olaoluwa Osuntokun
b31640e6b0
build: bump version to v0.15.0-beta.rc1 2022-05-16 20:16:01 -07:00