A HashiCorp-compatible
hclog
logger for .NET, designed to work seamlessly with Go hosts usinggo-plugin
.
- Emits logs in strict
hclog
JSON format expected by Go plugins - Supports
debug
,info
,warn
,error
levels - Writes to
stderr
by default (compatible with go-plugin behavior) - Minimal dependencies, .NET Standard 2.0 compatible
var logger = new HCLogger("plugin-core");
logger.Info("Starting plugin at {0}", DateTime.Now);