logi_ex v0.1.1 Logi.Sink
Sinks.
A sink has the specification of a sink process (see Logi.SinkProc
).
A sink process manages a sink writer (See Logi.SinkWriter
).
See the documentations of Logi.BuiltIn.Sink.*
modules for usage examples.
Summary
Types
The identifier of a sink
A sink
The specification of a sink process
The supervise flags of a sink process
Functions
Creates a sink from standalone a writer instance
Equivalent to Logi.Sink.get_spec(sink)[:id]
Gets the process specification of sink
Gets the supervise flags of sink
Creates a new sink
Types
The identifier of a sink.
The scope of an identifier is limited in siblings with the same parent.
A sink
The specification of a sink process.
See Erlang official documents of :supervisor
for more information.
NOTE: :restart
field is ignored (always regarded as :permanent
).
Functions
Creates a sink from standalone a writer instance.
No specific sink process is needed by writer
to write log messages.
Gets the process specification of sink
.
The type of the return value is always map.
Gets the supervise flags of sink
.
The type of the return value is always map.
Returns true
if x
is a sink/0
value, false
otherwise.