diff --git a/src/logging.js b/src/logging.js index 25b45eb61f83f4f965337a44180f68cf28151fa1..98982a94b30f05aec0e82049404a68d017f8302d 100644 --- a/src/logging.js +++ b/src/logging.js @@ -2,6 +2,12 @@ * Custom logging to create more useful output. * Simply include this file at the top of other files to get extra logging logic. * + * Log Levels: + * * 10 - DEBUG + * * 20 - INFO + * * 30 - WARNING + * * 40 - ERROR + * * https://git.brandon-rodriguez.com/javascript/custom_logger * Version 1.1 */ @@ -46,10 +52,16 @@ class Logging { /** * Real logging class. + * + * To extend class with additional logging levels: + * * Define a new "#x_file_logger" at the top of the file, to hold logging file descriptors. + * * In the constructor, copy one of the existing "this.#x_file_logger" sections and adjust for the new log level. + * * Copy one of the existing log level methods and adjust it for the new log level. + * * Finally, if applicable, add the new LogLeveLNum handling to the "#logToFile" method. */ class LoggingClass { - test_var = 'test_var string'; - #console_debug = 'debug test'; + + // Define what will ultimately be our log file handlers. #debug_file_logger; #info_file_logger; #warning_file_logger;