Skip to main content

Logging

Functions

console_logger(Boolean flag)->Boolean

Print log messages on server console


create_log_file(Charstring file)->Charstring

Create file in current log directory


delete_log_file(Charstring file)->Charstring

Delete file in log directory


file_stream(Charstring kind,Charstring file,Charstring option)->Stream

Stream tuples from log file in format kind (json or csv). option can be 'read', 'tail', or 'loop'


file_stream(Charstring kind,Charstring file,Charstring option,Number pace)
->Stream

Playback log file in format kind (json or csv) at pace in seconds. option can be 'read', 'tail', or 'loop'


file_stream(Charstring kind,Charstring file)->Stream

Stream tuples from log file in format kind (json or csv)


log_directory(Charstring dir)->Charstring

Change current log directory to dir


log_directory()->Charstring

The current log directory where log files are located


log_filename(Charstring file)->Charstring

The full path of file in current log directory


stream_logger(Stream s,Charstring kind,Charstring file,Charstring option)
->Stream

Write records in stream s into log file in format kind (json or csv). option can be: new if old log file is overwritten, or append if old log file is extended


write_logfile(Charstring kind,Charstring file,Stream s)->Charstring

Write elements in stream s into new log file in format kind (json or csv)