blob: ece763f069ed201003f74835ba9be3397959e45d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
namespace ns_log {
class Component {
Component();
Component& operator = (const Component &);
Component(const Component &);
char *_name;
char *_charLevels;
unsigned int *_intLevels;
public:
bool matches(const char *pattern);
void modifyLevels(const char *levels);
void display();
const char *endPointer() const { return _charLevels + Logger::NUM_LOGLEVELS*sizeof(int); }
explicit Component(char *);
};
} // end namespace ns_log
|