< prev index next >

src/share/vm/logging/logLevel.hpp

Print this page




  32 //  develop - A non-product level that is finer than trace.
  33 //            Should be used for really expensive and/or
  34 //            extensive logging, or logging that shouldn't
  35 //            or can't be included in a product build.
  36 //
  37 //  trace   - Finest level of logging in product builds.
  38 //            Use for extensive/noisy logging that can
  39 //            give slow-down when enabled.
  40 //
  41 //  debug   - A finer level of logging. Use for semi-noisy
  42 //            logging that is does not fit the info level.
  43 //
  44 //  info    - General level of logging. Use for significant
  45 //            events and/or informative summaries.
  46 //
  47 //  warning - Important messages that are not strictly errors.
  48 //
  49 //  error   - Critical messages caused by errors.
  50 //
  51 #define LOG_LEVEL_LIST \
  52   NOT_PRODUCT(LOG_LEVEL(Develop, develop)) \
  53   LOG_LEVEL(Trace, trace) \
  54   LOG_LEVEL(Debug, debug) \
  55   LOG_LEVEL(Info, info) \
  56   LOG_LEVEL(Warning, warning) \
  57   LOG_LEVEL(Error, error)
  58 
  59 class LogLevel : public AllStatic {
  60  public:
  61   enum type {
  62     Off,
  63 #define LOG_LEVEL(name, printname) name,
  64     LOG_LEVEL_LIST
  65 #undef LOG_LEVEL
  66     Count,
  67     Invalid,
  68     First = Off + 1,
  69     Last = Error,
  70     Default = Warning,
  71     Unspecified = Info
  72   };


  32 //  develop - A non-product level that is finer than trace.
  33 //            Should be used for really expensive and/or
  34 //            extensive logging, or logging that shouldn't
  35 //            or can't be included in a product build.
  36 //
  37 //  trace   - Finest level of logging in product builds.
  38 //            Use for extensive/noisy logging that can
  39 //            give slow-down when enabled.
  40 //
  41 //  debug   - A finer level of logging. Use for semi-noisy
  42 //            logging that is does not fit the info level.
  43 //
  44 //  info    - General level of logging. Use for significant
  45 //            events and/or informative summaries.
  46 //
  47 //  warning - Important messages that are not strictly errors.
  48 //
  49 //  error   - Critical messages caused by errors.
  50 //
  51 #define LOG_LEVEL_LIST \
  52   LOG_LEVEL(Develop, develop) \
  53   LOG_LEVEL(Trace, trace) \
  54   LOG_LEVEL(Debug, debug) \
  55   LOG_LEVEL(Info, info) \
  56   LOG_LEVEL(Warning, warning) \
  57   LOG_LEVEL(Error, error)
  58 
  59 class LogLevel : public AllStatic {
  60  public:
  61   enum type {
  62     Off,
  63 #define LOG_LEVEL(name, printname) name,
  64     LOG_LEVEL_LIST
  65 #undef LOG_LEVEL
  66     Count,
  67     Invalid,
  68     First = Off + 1,
  69     Last = Error,
  70     Default = Warning,
  71     Unspecified = Info
  72   };
< prev index next >