plugins: add eventsearcher

This commit is contained in:
Nicola Murino
2021-10-17 16:43:05 +02:00
parent f131ef130b
commit 3bbe67571f
13 changed files with 1004 additions and 18 deletions

View File

@@ -5,6 +5,7 @@ import (
"errors"
"fmt"
"os/exec"
"path/filepath"
"github.com/hashicorp/go-hclog"
"github.com/hashicorp/go-plugin"
@@ -116,7 +117,7 @@ func (p *authPlugin) initialize() error {
Managed: false,
Logger: &logger.HCLogAdapter{
Logger: hclog.New(&hclog.LoggerOptions{
Name: fmt.Sprintf("%v.%v", logSender, auth.PluginName),
Name: fmt.Sprintf("%v.%v.%v", logSender, auth.PluginName, filepath.Base(p.config.Cmd)),
Level: pluginsLogLevel,
DisableTime: true,
}),