8201450: Provide access to LogHandle tagset
Added LogHandle::tagset function. Reviewed-by: stefank
This commit is contained in:
parent
60f0502b70
commit
1b060b7406
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -43,6 +43,10 @@ public:
|
||||
return _tagset->is_level(level);
|
||||
}
|
||||
|
||||
LogTagSet* tagset() const {
|
||||
return _tagset;
|
||||
}
|
||||
|
||||
#define LOG_LEVEL(level, name) ATTRIBUTE_PRINTF(2, 0) \
|
||||
LogHandle& v##name(const char* fmt, va_list args) { \
|
||||
_tagset->vwrite(LogLevel::level, fmt, args); \
|
||||
|
Loading…
Reference in New Issue
Block a user