Closed ihpd closed 11 years ago
I'm still not sure how to do this properly, I'll think about it.
Just thinking out loud. Right now cli and spawner is live (usable condition. So lets get the raw logs(debug/info)
We will need to add two more TODO in each file to remove these file loggers when we get report_logger operational.
Well the "report_logger" is only for the data collected by the monitors. For general system logging we are going to need something new. Preferably used by all layers.
Let me know your thoughts on this.This can be used as a starting point.
https://github.com/glastopf/glastopf/blob/master/modules/reporting/file_logger.py
I'll think about it.
Looks like this is finally over with the basic logger implemented now. This can be moved to closure.
Debugging will improve a lot if we can enable file logging to a static text file.
In spawner.py
Under import --> import modules.reporting.file_logger as file_logger
Under load --> log.info("Task ID:" + identifier + " is loaded successfully into queue from source file <" + filename + ">")
Under main--> log = file_logger.FileLogger(name="buttinsky").log() log.info('Starting Buttinsky spawner')
Pls suggest if this viable