[LOGGER] Switch to built-in logging class Switch from the homegrown RarslaveLogger class to the built-in logging class. Convert all code that used RarslaveLogger to use the logging class, and remove the RarslaveLogger class completely. Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
Remove inappropriate class variables, add instance variable documentation Removes all of the improperly used class variables. In their place, adds documentation for all of the instance variables that should be used throughout the life of each instance of a class. Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
[LOGGER] Change inner workings (again) Change the inner workings of the RarslaveLogger class so that it has four different message types: Fatal, Normal, Verbose, Debug. This also adds the function printLoglevel() to the RarslaveLogger class. It will print all messages at a certain loglevel. Also update the unit tests so that they behave with the current workings of the RarslaveLogger class. Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
[RARSLAVE] Remove id requirement from RarslaveLogger Remove the id requirement from RarslaveLogger. This reduces the class' utility, but makes it much easier to use in the existing rarslave infrastructure. Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
[RARSLAVE] Change RarslaveLogger operation Changes the RarslaveLogger class' method of operation to not require a pre-generated id. Instead, it still requires an id, but keeps track of all id's given to it. This also removes the unit tests that tested the old behavior. Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
[RARSLAVE] Add logging class This adds the RarslaveLogger class, used for logging of messages on a per-set basis. It also adds the support class RarslaveMessage, which is used within RarslaveLogger. Signed-off-by: Ira W. Snyder <devel@irasnyder.com>