draugr.writers.log_writer.LogWriter¶
- class draugr.writers.log_writer.LogWriter(path, **kwargs)[source]¶
Bases:
Writer
description
Methods
__init__
(path, **kwargs)- param interval
blip
(tag[, step_i])- param tag
close
()description
filter
(tag)returns a boolean value, true if to be included, False if to be excluded
get_logger
([path, write_to_std_out])- param path
log
(msg)- param msg
open
()description
scalar
(tag, value[, step_i])- param tag
text
(msg)- param msg
- filter(tag: str) bool ¶
returns a boolean value, true if to be included, False if to be excluded
tag is in filter if not None and within interval for inclusion
- Parameters
tag –
- Returns
- Return type
- static get_logger(path: Path = PosixPath('/mnt/win/Users/Christian/ProjectsWin/Github/Pything/draugr/docs/0.log'), write_to_std_out: bool = False) Logger [source]¶
- Parameters
path –
write_to_std_out –
- Returns
- Return type