pancsta / asyncmachine-go

AOP Actor Model for distributed workflows
https://asyncmachine.dev
MIT License
72 stars 0 forks source link

feat(machine): add EnvLogLevel #121

Closed pancsta closed 2 months ago

pancsta commented 2 months ago

For quicker logging, am.EnvLogLevel("") returns am.LogLevel from eg AM_LOG=3.

mach := am.New(nil, am.Struct{
    "Foo": {Requires: "Bar"},
    "Bar": {},
}, &am.Opts{
    LogLevel: am.EnvLogLevel(""),
})