pachocanadian / sole

SOLE - Simulator Of Lifts and Elevators
GNU General Public License v3.0
1 stars 0 forks source link

Enhance SOLE.log() to allow for severity based logging #6

Closed pachocanadian closed 5 years ago

pachocanadian commented 5 years ago

Set up SOLE.log() so that code like SOLE.log("starting work", DEBUG) or SOLE.log("division by zero", FATAL) would work.

  1. define severity based categories (ideally re-use something else out there)
  2. set up constants and namespace so that the severity isn't a hard entered number but instead a named constant of some kind
  3. figure out how the underlying logger will know what level of verbosity the user wants (e.g. when run with -v flag then show messages of X severity and above) in some way that is common to all SOLE modules