necst.web.log_reader

Small, safe log readers for the NECST operator console.

read_operator_log(path_value, *, limit=100)[source]
Parameters:
  • path_value (Any) –

  • limit (Any) –

Return type:

Dict[str, Any]

read_text_log(path_value, *, launcher_log_dir, operator_log_path, max_bytes=32768, extra_roots=None)[source]
Parameters:
  • path_value (Any) –

  • launcher_log_dir (Optional[Path]) –

  • operator_log_path (Optional[Path]) –

  • max_bytes (Any) –

  • extra_roots (Optional[Iterable[Path]]) –

Return type:

Dict[str, Any]

launcher_log_choices(process_records)[source]
Parameters:

process_records (Iterable[Mapping[str, Any]]) –

Return type:

List[Dict[str, Any]]