aboutsummaryrefslogtreecommitdiffstats
path: root/vespalog/src/vespa/log/component.h
blob: aa45c871d2b1bda8e400040841f908c13bf6880b (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 Yahoo. 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