onegpy.viewers.loggers.JSONLogger

class onegpy.viewers.loggers.JSONLogger(filedir=PosixPath('.'), filename='log', save_every_updating=False)[source]
__init__(filedir=PosixPath('.'), filename='log', save_every_updating=False)[source]

JSON Logger

Parameters:
  • filedir – str or Path. Directory to dump json.
  • filename – str or Path. Name of json
  • save_every_updating – bool. if true, save history every updating. otherwise save only in the end.

Methods

__init__([filedir, filename, …]) JSON Logger
begin(**kwargs)
end(history, **kwargs)
update(history, **kwargs)