Line data Source code
1 : // Copyright 2024 Accenture.
2 :
3 : #pragma once
4 :
5 : #include "logger/IComponentConfig.h"
6 :
7 : #include <util/command/ParentCommand.h>
8 : #include <util/command/SimpleCommand.h>
9 :
10 : namespace logger
11 : {
12 : class DefaultLoggerCommand
13 : {
14 : public:
15 : explicit DefaultLoggerCommand(IComponentConfig& componentConfig);
16 :
17 9 : ::util::command::ParentCommand& root() { return _root; }
18 :
19 : private:
20 : void levelCommand(::util::command::CommandContext& context);
21 :
22 : IComponentConfig& _componentConfig;
23 : ::util::command::SimpleCommand _levelCommand;
24 : ::util::command::ParentCommand _root;
25 : };
26 :
27 : } /* namespace logger */
|