Logger#
(hivenas.utils.logger)
Main event logging methods
- class Logger[source]#
Bases:
objectWrapper for debug- and info-logging methods
- EVALUATION_LOGGING = False#
- static debug(msg=None)[source]#
Debugging messages
- Parameters
msg (str, optional) – debug message, defaults to “MARK” to indicate whether the statement is reached
- static evaluation_log(type, id, candidate_pos)[source]#
Logs pre-evaluation info for every candidate
- Parameters
type (str) – bee type (Employee/Onlooker)
id (int) – bee ID
candidate_pos (str) – candidate position on the solution surface (the string-encoded architecture in the case of NAS)
- static filesave_log(candidate, filename)[source]#
Logs candidate info upon file-save
- Parameters
candidate (str) – candidate string representation (architecture in the case of NAS)
filename (str) – output filename