hotspot/src/share/vm/logging/log.hpp
changeset 38263 a7488329ad27
parent 37254 8631304f255c
child 46701 f559541c0daa
equal deleted inserted replaced
38262:8e814475a28a 38263:a7488329ad27
    29 #include "logging/logTagSet.hpp"
    29 #include "logging/logTagSet.hpp"
    30 #include "logging/logTag.hpp"
    30 #include "logging/logTag.hpp"
    31 #include "memory/allocation.hpp"
    31 #include "memory/allocation.hpp"
    32 #include "runtime/os.hpp"
    32 #include "runtime/os.hpp"
    33 #include "utilities/debug.hpp"
    33 #include "utilities/debug.hpp"
       
    34 
       
    35 class LogMessageBuffer;
    34 
    36 
    35 //
    37 //
    36 // Logging macros
    38 // Logging macros
    37 //
    39 //
    38 // Usage:
    40 // Usage:
   136     va_start(args, fmt);
   138     va_start(args, fmt);
   137     vwrite(level, fmt, args);
   139     vwrite(level, fmt, args);
   138     va_end(args);
   140     va_end(args);
   139   }
   141   }
   140 
   142 
       
   143   static void write(const LogMessageBuffer& msg) {
       
   144     LogTagSetMapping<T0, T1, T2, T3, T4>::tagset().log(msg);
       
   145   };
       
   146 
   141   template <LogLevelType Level>
   147   template <LogLevelType Level>
   142   ATTRIBUTE_PRINTF(1, 2)
   148   ATTRIBUTE_PRINTF(1, 2)
   143   static void write(const char* fmt, ...) {
   149   static void write(const char* fmt, ...) {
   144     va_list args;
   150     va_list args;
   145     va_start(args, fmt);
   151     va_start(args, fmt);