Documentation
¶
Overview ¶
Package nlog captures redacted agent and Xray messages in a bounded stream.
Index ¶
- func BindXray(local xlog.Handler)
- func Core() *slog.Logger
- func Init(out io.Writer, level slog.Level, _ bool)
- func RestoreXray()
- type Entry
- type Stream
- func (s *Stream) Drain() ([]Entry, uint64)
- func (s *Stream) Handle(msg xlog.Message)
- func (s *Stream) Redact(text string) string
- func (s *Stream) Secrets(values ...string)
- func (s *Stream) SetSecrets(values ...string)
- func (s *Stream) Severity() xlog.Severity
- func (s *Stream) Write(b []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RestoreXray ¶
func RestoreXray()
Types ¶
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
func (*Stream) SetSecrets ¶
Click to show internal directories.
Click to hide internal directories.