draugr.writers.log_writer.LogWriter

class draugr.writers.log_writer.LogWriter(path, **kwargs)[source]

Bases: Writer

description

__init__(path, **kwargs)[source]
Parameters
  • interval

  • filters

  • verbose

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

blip(tag: str, step_i: Optional[int] = None) None
Parameters
  • tag

  • step_i

close() Any

description

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

log(msg: str) None[source]
Parameters

msg

open() Any

description

scalar(tag: str, value: Union[int, float], step_i: Optional[int] = None) None
Parameters
  • tag

  • value

  • step_i

text(msg: str) None[source]
Parameters

msg