Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/lib/rex/logging.rb
Views: 11766
# -*- coding: binary -*-1module Rex::Logging234#5# Log severities6#7LOG_ERROR = :error8LOG_DEBUG = :debug9LOG_INFO = :info10LOG_WARN = :warn11LOG_RAW = :raw1213##14#15# Log levels16#17##1819#20# LEV_0 - Default21#22# This log level is the default log level if none is specified. It should be23# used when a log message should always be displayed when logging is enabled.24# Very few log messages should occur at this level aside from necessary25# information logging and error/warning logging. Debug logging at level zero26# is not advised.27#28LEV_0 = 02930#31# LEV_1 - Extra32#33# This log level should be used when extra information may be needed to34# understand the cause of an error or warning message or to get debugging35# information that might give clues as to why something is happening. This36# log level should be used only when information may be useful to understanding37# the behavior of something at a basic level. This log level should not be38# used in an exhaustively verbose fashion.39#40LEV_1 = 14142#43# LEV_2 - Verbose44#45# This log level should be used when verbose information may be needed to46# analyze the behavior of the framework. This should be the default log47# level for all detailed information not falling into LEV_0 or LEV_1.48# It is recommended that this log level be used by default if you are49# unsure.50#51LEV_2 = 25253#54# LEV_3 - Insanity55#56# This log level should contain very verbose information about the57# behavior of the framework, such as detailed information about variable58# states at certain phases including, but not limited to, loop iterations,59# function calls, and so on. This log level will rarely be displayed,60# but when it is the information provided should make it easy to analyze61# any problem.62#63LEV_3 = 36465require 'rex/logging/log_dispatcher'66end676869