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

Method SetLevel

pkg/csplugin/hclog_adapter.go:122–124  ·  view source on GitHub ↗
(level hclog.Level)

Source from the content-addressed store, hash-verified

120}
121
122func (h *HCLogAdapter) SetLevel(level hclog.Level) {
123 h.log.Logger.SetLevel(level2logrus(level))
124}
125
126func (h HCLogAdapter) GetLevel() hclog.Level {
127 return level2hclog(h.log.Logger.GetLevel())

Callers 15

ConfigureByDSNMethod · 0.80
setLoggerMethod · 0.80
TestListPollingFunction · 0.80
ConfigureByDSNMethod · 0.80
ConfigureByDSNMethod · 0.80
TestOneShotAcquisitionFunction · 0.80
TestStreamingAcquisitionFunction · 0.80
ConfigureByDSNMethod · 0.80
TestConfigurationMethod · 0.80
TestConfigureByDSNMethod · 0.80

Calls 1

level2logrusFunction · 0.85

Tested by 15

TestListPollingFunction · 0.64
TestOneShotAcquisitionFunction · 0.64
TestStreamingAcquisitionFunction · 0.64
TestConfigurationMethod · 0.64
TestConfigureByDSNMethod · 0.64
TestOneShotFunction · 0.64
TestLiveAcquisitionFunction · 0.64
TestOneShotAcquisitionFunction · 0.64
TestStreamingAcquisitionFunction · 0.64
TestStreamingAcquisitionFunction · 0.64