MCPcopy
hub / github.com/crowdsecurity/crowdsec / StandardLogger

Method StandardLogger

pkg/csplugin/hclog_adapter.go:130–135  ·  view source on GitHub ↗
(opts *hclog.StandardLoggerOptions)

Source from the content-addressed store, hash-verified

128}
129
130func (h HCLogAdapter) StandardLogger(opts *hclog.StandardLoggerOptions) *log.Logger {
131 if opts == nil {
132 opts = &hclog.StandardLoggerOptions{}
133 }
134 return log.New(h.StandardWriter(opts), "", 0)
135}
136
137func (HCLogAdapter) StandardWriter(opts *hclog.StandardLoggerOptions) io.Writer {
138 return os.Stderr

Callers 15

NewLoggerMethod · 0.80
CacheInitFunction · 0.80
InitCrowdsecCTIFunction · 0.80
NewClientFunction · 0.80
createAlertBatchMethod · 0.80
DataSourceConfigureFunction · 0.80
LoadAcquisitionFromDSNFunction · 0.80
setupTailForFileMethod · 0.80
NewProfileFunction · 0.80
compileMethod · 0.80
testHubOldFunction · 0.80

Calls 1

StandardWriterMethod · 0.95

Tested by 7

testHubOldFunction · 0.64
newTestConfigFunction · 0.64
TestBuildNilPhaseConfigFunction · 0.64
TestAppsecAllowlistFunction · 0.64