Module logi_builtin_sink_composite

A built-in composite sink.

Copyright © 2014-2016 Takeru Ohta <phjgt308@gmail.com>

Behaviours: gen_server.

Description

A built-in composite sink

NOTE

This module is provided for debuging/testing purposes only.

Function Index

get_children/1Returns a list of children.
new/2Creats a new sink instance.
set_active_writer/2Sets the Nth cihld to be active.
unset_active_writer/1Unsets the active child.

Function Details

get_children/1

get_children(Pid::pid()) -> [logi_sink:sink()]

Returns a list of children

new/2

new(Id::logi_sink:id(), Children::[logi_sink:sink()]) -> logi_sink:sink()

Creats a new sink instance

set_active_writer/2

set_active_writer(Pid::pid(), Nth::pos_integer()) -> ok

Sets the Nth cihld to be active

unset_active_writer/1

unset_active_writer(Pid::pid()) -> ok

Unsets the active child


Generated by EDoc