Line data Source code
1 : /********************************************************************************
2 : * Copyright (c) 2024 Accenture
3 : *
4 : * This program and the accompanying materials are made available under the
5 : * terms of the Apache License Version 2.0 which is available at
6 : * https://www.apache.org/licenses/LICENSE-2.0
7 : *
8 : * SPDX-License-Identifier: Apache-2.0
9 : ********************************************************************************/
10 :
11 : #pragma once
12 :
13 : #include "logger/IComponentConfig.h"
14 :
15 : #include <util/command/ParentCommand.h>
16 : #include <util/command/SimpleCommand.h>
17 :
18 : namespace logger
19 : {
20 : class DefaultLoggerCommand
21 : {
22 : public:
23 : explicit DefaultLoggerCommand(IComponentConfig& componentConfig);
24 :
25 9 : ::util::command::ParentCommand& root() { return _root; }
26 :
27 : private:
28 : void levelCommand(::util::command::CommandContext& context);
29 :
30 : IComponentConfig& _componentConfig;
31 : ::util::command::SimpleCommand _levelCommand;
32 : ::util::command::ParentCommand _root;
33 : };
34 :
35 : } /* namespace logger */
|