hotspot/src/share/vm/logging/logTagSet.hpp
changeset 38263 a7488329ad27
parent 37463 a4581cbe32cd
child 38292 73a0be9b2f47
equal deleted inserted replaced
38262:8e814475a28a 38263:a7488329ad27
    28 #include "logging/logLevel.hpp"
    28 #include "logging/logLevel.hpp"
    29 #include "logging/logOutputList.hpp"
    29 #include "logging/logOutputList.hpp"
    30 #include "logging/logPrefix.hpp"
    30 #include "logging/logPrefix.hpp"
    31 #include "logging/logTag.hpp"
    31 #include "logging/logTag.hpp"
    32 #include "utilities/globalDefinitions.hpp"
    32 #include "utilities/globalDefinitions.hpp"
       
    33 
       
    34 class LogMessageBuffer;
    33 
    35 
    34 // The tagset represents a combination of tags that occur in a log call somewhere.
    36 // The tagset represents a combination of tags that occur in a log call somewhere.
    35 // Tagsets are created automatically by the LogTagSetMappings and should never be
    37 // Tagsets are created automatically by the LogTagSetMappings and should never be
    36 // instantiated directly somewhere else.
    38 // instantiated directly somewhere else.
    37 class LogTagSet VALUE_OBJ_CLASS_SPEC {
    39 class LogTagSet VALUE_OBJ_CLASS_SPEC {
   108   // that it is inline:able by the log_is_enabled(level, ...) macro.
   110   // that it is inline:able by the log_is_enabled(level, ...) macro.
   109   bool is_level(LogLevelType level) const {
   111   bool is_level(LogLevelType level) const {
   110     return _output_list.is_level(level);
   112     return _output_list.is_level(level);
   111   }
   113   }
   112   void log(LogLevelType level, const char* msg);
   114   void log(LogLevelType level, const char* msg);
       
   115   void log(const LogMessageBuffer& msg);
   113 
   116 
   114   ATTRIBUTE_PRINTF(3, 4)
   117   ATTRIBUTE_PRINTF(3, 4)
   115   void write(LogLevelType level, const char* fmt, ...);
   118   void write(LogLevelType level, const char* fmt, ...);
   116 
   119 
   117   template <LogLevelType Level>
   120   template <LogLevelType Level>