You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add configurable, nix-style file permissions for log files in both the standard and custom lumberjack sinks. This involves several items:
(1) Added a Permissions string field to sallust.Config. This field will have the same format as nix-style permissions, allowing a leading zero, e.g. "0644" and "644" are both acceptable. sallust will then parse that into an fs.FileMode.
(2) Add code that happens before the standard zap.Sink that creates the file with the configured permissions. This will probably have to happen in sallust.Config.Build(...).
(3) Include a perms=xyz parameter in the lumberjack URI for the sallust.Lumberjack type. This URI parameter's value has the same format(s) as in (1) above. This is required so that configuration information carries down to the custom code in sallust.NewLumberJackSink. See: https://pkg.go.dev/github.com/xmidt-org/sallust#NewLumberjackSink
The text was updated successfully, but these errors were encountered:
Add configurable, nix-style file permissions for log files in both the standard and custom
lumberjack
sinks. This involves several items:(1) Added a
Permissions string
field tosallust.Config
. This field will have the same format as nix-style permissions, allowing a leading zero, e.g. "0644" and "644" are both acceptable.sallust
will then parse that into anfs.FileMode
.(2) Add code that happens before the standard
zap.Sink
that creates the file with the configured permissions. This will probably have to happen insallust.Config.Build(...)
.(3) Include a
perms=xyz
parameter in thelumberjack
URI for thesallust.Lumberjack
type. This URI parameter's value has the same format(s) as in (1) above. This is required so that configuration information carries down to the custom code insallust.NewLumberJackSink
. See: https://pkg.go.dev/github.com/xmidt-org/sallust#NewLumberjackSinkThe text was updated successfully, but these errors were encountered: