Wasatch.PY
Python application driver for Wasatch Photonics spectrometers
Loading...
Searching...
No Matches
wasatch.applog Namespace Reference

Classes

class  MainLogger
 

Functions

 delete_log_file_if_exists ()
 Remove the specified log file and return True if succesful.
 
 explicit_log_close ()
 
 get_location ()
 
 get_text_from_log ()
 Called at the beginning of every subprocess, to tie into the existing root logger (owned and created by the MainProcess).
 
 log_file_created ()
 
 set_location (path)
 

Variables

 explicit_path = None
 

Function Documentation

◆ delete_log_file_if_exists()

wasatch.applog.delete_log_file_if_exists ( )

Remove the specified log file and return True if succesful.

◆ explicit_log_close()

wasatch.applog.explicit_log_close ( )

◆ get_location()

wasatch.applog.get_location ( )

◆ get_text_from_log()

wasatch.applog.get_text_from_log ( )

Called at the beginning of every subprocess, to tie into the existing root logger (owned and created by the MainProcess).

Adds a queue handler object to the root logger to be processed in the main listener.

Only on Windows though. Apparently Linux will pass the root logger amongst processes as expected, so if you add another queue handler you will get double log prints.

Mimic the capturelog style of just slurping the entire log file contents.

MZ: if we're just interested in the 'tail' of the log, this will be horribly inefficient for memory as the log file grows!

◆ log_file_created()

wasatch.applog.log_file_created ( )

◆ set_location()

wasatch.applog.set_location ( path)

Variable Documentation

◆ explicit_path

wasatch.applog.explicit_path = None