MCPcopy
hub / github.com/getsops/sops / Format

Method Format

logging/logging.go:21–25  ·  view source on GitHub ↗

Format formats a log entry onto bytes

(entry *logrus.Entry)

Source from the content-addressed store, hash-verified

19
20// Format formats a log entry onto bytes
21func (f *TextFormatter) Format(entry *logrus.Entry) ([]byte, error) {
22 bytes, err := f.TextFormatter.Format(entry)
23 name := color.New(color.Bold).Sprintf("[%s]", f.LoggerName)
24 return []byte(fmt.Sprintf("%s\t %s", name, bytes)), err
25}
26
27// NewLogger is the constructor for a new Logger object with the given name
28func NewLogger(name string) *logrus.Logger {

Callers 15

ToMapMethod · 0.80
ToMapMethod · 0.80
TestMasterKey_ToMapFunction · 0.80
metadataFromInternalFunction · 0.80
pgpKeysFromGroupFunction · 0.80
kmsKeysFromGroupFunction · 0.80
gcpkmsKeysFromGroupFunction · 0.80
vaultKeysFromGroupFunction · 0.80
azkvKeysFromGroupFunction · 0.80
hckmsKeysFromGroupFunction · 0.80
ValToStringFunction · 0.80
ToMapMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestMasterKey_ToMapFunction · 0.64