<br>
(?id:string,?append:bool,?dir_perm:int,?fallible:bool,
?flush:int,?on_close:((string)->unit),
?on_start:(()->unit),?on_stop:(()->unit),?perm:int,
?reopen_delay:float,?reopen_on_metadata:bool,
?reopen_when:(()->bool),?start:bool,format('a),string,
source('a))->active_source('a)
Output the source stream to a file.
id
(string
– defaults to ""
): Force the value of the source ID.append
(bool
– defaults to false
): Do not truncate but append in the file if it exists.dir_perm
(int
– defaults to 511
):fallible
(bool
– defaults to false
): Allow the child source to fail, in which case the output will be (temporarily) stopped.flush
(int
– defaults to false
): Perform a flush after each write.on_close
((string)->unit
– defaults to fun (_) -> ()
): This function will be called for each file, after that it is finished and closed. The filename will be passed as argument.on_start
(()->unit
– defaults to {()}
): Callback executed when outputting starts.on_stop
(()->unit
– defaults to {()}
): Callback executed when outputting stops.perm
(int
– defaults to 438
): reopen_delay
(float
– defaults to 120.
): Prevent re-opening within that delay, in seconds.reopen_on_metadata
(bool
– defaults to false
): Re-open on every new metadata information.reopen_when
(()->bool
– defaults to {false}
): When should the output be re-opened.start
(bool
– defaults to true
): (unlabeled)
(format('a)
): Encoding format.(unlabeled)
(string
): Filename where to output the stream. Some strftime conversion specifiers are available: %SMHdmY
. You can also use $(..)
interpolation notation for metadata.(unlabeled)
(source('a)
)It looks like you're new here. If you want to get involved, click one of these buttons!