View Source IntoLog (IntoLog v1.0.0)
Collectable protocol for Logging, allowing a logger to be passed anywhere a Collectable is accepted.
require IntoLog
System.cmd("echo", ["hello"], into: IntoLog.log(:info))
09:24:42.866 [info] hello
Link to this section Summary
Functions
Returns a Collectable that logs each message with the given
level
and metadata.
Link to this section Functions
Returns a Collectable that logs each message with the given
level
and metadata.
Enum.into(["hello", "world"], IntoLog.log(:info))