src/hotspot/share/logging/logTagSet.hpp
author erikj
Tue, 12 Sep 2017 19:03:39 +0200
changeset 47216 71c04702a3d5
parent 40884 hotspot/src/share/vm/logging/logTagSet.hpp@0e28c526f5d3
child 49364 601146c66cad
permissions -rw-r--r--
8187443: Forest Consolidation: Move files to unified layout Reviewed-by: darcy, ihse
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
33097
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
     1
/*
40355
e9770c31b4f1 8161026: GPL header missing comma in year
rehn
parents: 38292
diff changeset
     2
 * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
33097
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
     4
 *
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
     7
 * published by the Free Software Foundation.
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
     8
 *
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    13
 * accompanied this code).
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    14
 *
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    18
 *
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    21
 * questions.
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    22
 *
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    23
 */
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    24
#ifndef SHARE_VM_LOGGING_LOGTAGSET_HPP
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    25
#define SHARE_VM_LOGGING_LOGTAGSET_HPP
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    26
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    27
#include "logging/logDecorators.hpp"
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    28
#include "logging/logLevel.hpp"
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    29
#include "logging/logOutputList.hpp"
37247
bdbfe42632cb 8153254: Delegate (v)write from Log to LogTagSet
rehn
parents: 37241
diff changeset
    30
#include "logging/logPrefix.hpp"
33097
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    31
#include "logging/logTag.hpp"
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    32
#include "utilities/globalDefinitions.hpp"
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    33
38263
a7488329ad27 8145934: Make ttyLocker equivalent for Unified Logging framework
mlarsson
parents: 37463
diff changeset
    34
class LogMessageBuffer;
a7488329ad27 8145934: Make ttyLocker equivalent for Unified Logging framework
mlarsson
parents: 37463
diff changeset
    35
33097
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    36
// The tagset represents a combination of tags that occur in a log call somewhere.
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    37
// Tagsets are created automatically by the LogTagSetMappings and should never be
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    38
// instantiated directly somewhere else.
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    39
class LogTagSet VALUE_OBJ_CLASS_SPEC {
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    40
 private:
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    41
  static LogTagSet* _list;
38292
73a0be9b2f47 8146948: Enable listing of LogTagSets and add support for LogTagSet descriptions
mlarsson
parents: 38263
diff changeset
    42
  static size_t _ntagsets;
33097
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    43
38292
73a0be9b2f47 8146948: Enable listing of LogTagSets and add support for LogTagSet descriptions
mlarsson
parents: 38263
diff changeset
    44
  LogTagSet* const _next;
73a0be9b2f47 8146948: Enable listing of LogTagSets and add support for LogTagSet descriptions
mlarsson
parents: 38263
diff changeset
    45
  size_t _ntags;
73a0be9b2f47 8146948: Enable listing of LogTagSets and add support for LogTagSet descriptions
mlarsson
parents: 38263
diff changeset
    46
  LogTagType _tag[LogTag::MaxTags];
33097
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    47
38292
73a0be9b2f47 8146948: Enable listing of LogTagSets and add support for LogTagSet descriptions
mlarsson
parents: 38263
diff changeset
    48
  LogOutputList _output_list;
73a0be9b2f47 8146948: Enable listing of LogTagSets and add support for LogTagSet descriptions
mlarsson
parents: 38263
diff changeset
    49
  LogDecorators _decorators;
33097
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    50
37247
bdbfe42632cb 8153254: Delegate (v)write from Log to LogTagSet
rehn
parents: 37241
diff changeset
    51
  typedef size_t (*PrefixWriter)(char* buf, size_t size);
38292
73a0be9b2f47 8146948: Enable listing of LogTagSets and add support for LogTagSet descriptions
mlarsson
parents: 38263
diff changeset
    52
  PrefixWriter _write_prefix;
37247
bdbfe42632cb 8153254: Delegate (v)write from Log to LogTagSet
rehn
parents: 37241
diff changeset
    53
33097
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    54
  // Keep constructor private to prevent incorrect instantiations of this class.
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    55
  // Only LogTagSetMappings can create/contain instances of this class.
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    56
  // The constructor links all tagsets together in a global list of tagsets.
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    57
  // This list is used during configuration to be able to update all tagsets
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    58
  // and their configurations to reflect the new global log configuration.
37247
bdbfe42632cb 8153254: Delegate (v)write from Log to LogTagSet
rehn
parents: 37241
diff changeset
    59
  LogTagSet(PrefixWriter prefix_writer, LogTagType t0, LogTagType t1, LogTagType t2, LogTagType t3, LogTagType t4);
33097
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    60
37247
bdbfe42632cb 8153254: Delegate (v)write from Log to LogTagSet
rehn
parents: 37241
diff changeset
    61
  template <LogTagType T0, LogTagType T1, LogTagType T2, LogTagType T3, LogTagType T4, LogTagType GuardTag>
33097
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    62
  friend class LogTagSetMapping;
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    63
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    64
 public:
38292
73a0be9b2f47 8146948: Enable listing of LogTagSets and add support for LogTagSet descriptions
mlarsson
parents: 38263
diff changeset
    65
  static void describe_tagsets(outputStream* out);
73a0be9b2f47 8146948: Enable listing of LogTagSets and add support for LogTagSet descriptions
mlarsson
parents: 38263
diff changeset
    66
  static void list_all_tagsets(outputStream* out);
73a0be9b2f47 8146948: Enable listing of LogTagSets and add support for LogTagSet descriptions
mlarsson
parents: 38263
diff changeset
    67
33097
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    68
  static LogTagSet* first() {
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    69
    return _list;
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    70
  }
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    71
37463
a4581cbe32cd 8153731: Increase max tag combinations for UL expression (config)
rehn
parents: 37247
diff changeset
    72
  static size_t ntagsets() {
a4581cbe32cd 8153731: Increase max tag combinations for UL expression (config)
rehn
parents: 37247
diff changeset
    73
    return _ntagsets;
a4581cbe32cd 8153731: Increase max tag combinations for UL expression (config)
rehn
parents: 37247
diff changeset
    74
  }
a4581cbe32cd 8153731: Increase max tag combinations for UL expression (config)
rehn
parents: 37247
diff changeset
    75
33097
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    76
  LogTagSet* next() {
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    77
    return _next;
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    78
  }
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    79
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    80
  size_t ntags() const {
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    81
    return _ntags;
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    82
  }
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    83
37200
e601cf49b2d8 8151438: UL instantiates duplicate tag sets
mlarsson
parents: 34316
diff changeset
    84
  LogTagType tag(size_t idx) const {
e601cf49b2d8 8151438: UL instantiates duplicate tag sets
mlarsson
parents: 34316
diff changeset
    85
    return _tag[idx];
e601cf49b2d8 8151438: UL instantiates duplicate tag sets
mlarsson
parents: 34316
diff changeset
    86
  }
e601cf49b2d8 8151438: UL instantiates duplicate tag sets
mlarsson
parents: 34316
diff changeset
    87
33097
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    88
  bool contains(LogTagType tag) const {
40884
0e28c526f5d3 8150894: Unused -Xlog tag sequences are silently ignored.
mlarsson
parents: 40355
diff changeset
    89
    for (size_t i = 0; i < LogTag::MaxTags && _tag[i] != LogTag::__NO_TAG; i++) {
33097
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    90
      if (tag == _tag[i]) {
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    91
        return true;
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    92
      }
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    93
    }
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    94
    return false;
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    95
  }
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
    96
34316
4d876653d940 8142952: Unified Logging framework does not allow multiple -Xlog: arguments.
mlarsson
parents: 33097
diff changeset
    97
  LogLevelType level_for(const LogOutput* output) const {
4d876653d940 8142952: Unified Logging framework does not allow multiple -Xlog: arguments.
mlarsson
parents: 33097
diff changeset
    98
    return _output_list.level_for(output);
4d876653d940 8142952: Unified Logging framework does not allow multiple -Xlog: arguments.
mlarsson
parents: 33097
diff changeset
    99
  }
4d876653d940 8142952: Unified Logging framework does not allow multiple -Xlog: arguments.
mlarsson
parents: 33097
diff changeset
   100
33097
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   101
  void set_output_level(LogOutput* output, LogLevelType level) {
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   102
    _output_list.set_output_level(output, level);
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   103
  }
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   104
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   105
  // Refresh the decorators for this tagset to contain the decorators for all
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   106
  // of its current outputs combined with the given decorators.
34316
4d876653d940 8142952: Unified Logging framework does not allow multiple -Xlog: arguments.
mlarsson
parents: 33097
diff changeset
   107
  void update_decorators(const LogDecorators& decorator = LogDecorators::None);
33097
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   108
34316
4d876653d940 8142952: Unified Logging framework does not allow multiple -Xlog: arguments.
mlarsson
parents: 33097
diff changeset
   109
  int label(char *buf, size_t len, const char* separator = ",") const;
33097
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   110
  bool has_output(const LogOutput* output);
37241
b9961c99c356 8152538: UL doesn't inline the LogTagSet::is_level check
stefank
parents: 37200
diff changeset
   111
b9961c99c356 8152538: UL doesn't inline the LogTagSet::is_level check
stefank
parents: 37200
diff changeset
   112
  // The implementation of this function is put here to ensure
b9961c99c356 8152538: UL doesn't inline the LogTagSet::is_level check
stefank
parents: 37200
diff changeset
   113
  // that it is inline:able by the log_is_enabled(level, ...) macro.
b9961c99c356 8152538: UL doesn't inline the LogTagSet::is_level check
stefank
parents: 37200
diff changeset
   114
  bool is_level(LogLevelType level) const {
b9961c99c356 8152538: UL doesn't inline the LogTagSet::is_level check
stefank
parents: 37200
diff changeset
   115
    return _output_list.is_level(level);
b9961c99c356 8152538: UL doesn't inline the LogTagSet::is_level check
stefank
parents: 37200
diff changeset
   116
  }
33097
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   117
  void log(LogLevelType level, const char* msg);
38263
a7488329ad27 8145934: Make ttyLocker equivalent for Unified Logging framework
mlarsson
parents: 37463
diff changeset
   118
  void log(const LogMessageBuffer& msg);
37247
bdbfe42632cb 8153254: Delegate (v)write from Log to LogTagSet
rehn
parents: 37241
diff changeset
   119
bdbfe42632cb 8153254: Delegate (v)write from Log to LogTagSet
rehn
parents: 37241
diff changeset
   120
  ATTRIBUTE_PRINTF(3, 4)
bdbfe42632cb 8153254: Delegate (v)write from Log to LogTagSet
rehn
parents: 37241
diff changeset
   121
  void write(LogLevelType level, const char* fmt, ...);
bdbfe42632cb 8153254: Delegate (v)write from Log to LogTagSet
rehn
parents: 37241
diff changeset
   122
bdbfe42632cb 8153254: Delegate (v)write from Log to LogTagSet
rehn
parents: 37241
diff changeset
   123
  template <LogLevelType Level>
bdbfe42632cb 8153254: Delegate (v)write from Log to LogTagSet
rehn
parents: 37241
diff changeset
   124
  ATTRIBUTE_PRINTF(2, 3)
bdbfe42632cb 8153254: Delegate (v)write from Log to LogTagSet
rehn
parents: 37241
diff changeset
   125
  void write(const char* fmt, ...) {
bdbfe42632cb 8153254: Delegate (v)write from Log to LogTagSet
rehn
parents: 37241
diff changeset
   126
    va_list args;
bdbfe42632cb 8153254: Delegate (v)write from Log to LogTagSet
rehn
parents: 37241
diff changeset
   127
    va_start(args, fmt);
bdbfe42632cb 8153254: Delegate (v)write from Log to LogTagSet
rehn
parents: 37241
diff changeset
   128
    vwrite(Level, fmt, args);
bdbfe42632cb 8153254: Delegate (v)write from Log to LogTagSet
rehn
parents: 37241
diff changeset
   129
    va_end(args);
bdbfe42632cb 8153254: Delegate (v)write from Log to LogTagSet
rehn
parents: 37241
diff changeset
   130
  }
bdbfe42632cb 8153254: Delegate (v)write from Log to LogTagSet
rehn
parents: 37241
diff changeset
   131
bdbfe42632cb 8153254: Delegate (v)write from Log to LogTagSet
rehn
parents: 37241
diff changeset
   132
  ATTRIBUTE_PRINTF(3, 0)
bdbfe42632cb 8153254: Delegate (v)write from Log to LogTagSet
rehn
parents: 37241
diff changeset
   133
  void vwrite(LogLevelType level, const char* fmt, va_list args);
33097
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   134
};
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   135
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   136
template <LogTagType T0, LogTagType T1 = LogTag::__NO_TAG, LogTagType T2 = LogTag::__NO_TAG,
37247
bdbfe42632cb 8153254: Delegate (v)write from Log to LogTagSet
rehn
parents: 37241
diff changeset
   137
          LogTagType T3 = LogTag::__NO_TAG, LogTagType T4 = LogTag::__NO_TAG,
bdbfe42632cb 8153254: Delegate (v)write from Log to LogTagSet
rehn
parents: 37241
diff changeset
   138
          LogTagType GuardTag = LogTag::__NO_TAG>
33097
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   139
class LogTagSetMapping : public AllStatic {
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   140
private:
37247
bdbfe42632cb 8153254: Delegate (v)write from Log to LogTagSet
rehn
parents: 37241
diff changeset
   141
  // Verify number of logging tags does not exceed maximum supported.
bdbfe42632cb 8153254: Delegate (v)write from Log to LogTagSet
rehn
parents: 37241
diff changeset
   142
  STATIC_ASSERT(GuardTag == LogTag::__NO_TAG);
33097
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   143
  static LogTagSet _tagset;
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   144
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   145
public:
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   146
  static LogTagSet& tagset() {
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   147
    return _tagset;
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   148
  }
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   149
};
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   150
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   151
// Instantiate the static field _tagset for all tagsets that are used for logging somewhere.
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   152
// (This must be done here rather than the .cpp file because it's a template.)
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   153
// Each combination of tags used as template arguments to the Log class somewhere (via macro or not)
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   154
// will instantiate the LogTagSetMapping template, which in turn creates the static field for that
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   155
// tagset. This _tagset contains the configuration for those tags.
37247
bdbfe42632cb 8153254: Delegate (v)write from Log to LogTagSet
rehn
parents: 37241
diff changeset
   156
template <LogTagType T0, LogTagType T1, LogTagType T2, LogTagType T3, LogTagType T4, LogTagType GuardTag>
bdbfe42632cb 8153254: Delegate (v)write from Log to LogTagSet
rehn
parents: 37241
diff changeset
   157
LogTagSet LogTagSetMapping<T0, T1, T2, T3, T4, GuardTag>::_tagset(&LogPrefix<T0, T1, T2, T3, T4>::prefix, T0, T1, T2, T3, T4);
33097
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   158
96e348cb0442 8046148: JEP 158: Unified JVM Logging
mlarsson
parents:
diff changeset
   159
#endif // SHARE_VM_LOGGING_LOGTAGSET_HPP