Lightstreamer C++ Client SDK
Loading...
Searching...
No Matches
LoggerProvider.h
1/*
2 * Copyright (C) 2023 Lightstreamer Srl
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16#ifndef INCLUDED_Lightstreamer_LoggerProvider
17#define INCLUDED_Lightstreamer_LoggerProvider
18
19#include "Lightstreamer/Logger.h"
20#include <string>
21
22namespace Lightstreamer {
23
30public:
31 virtual ~LoggerProvider() {};
42 virtual Logger* getLogger(const std::string& category) = 0;
43};
44
45} // namespace Lightstreamer
46
47#endif // INCLUDED_Lightstreamer_LoggerProvider
Interface to be implemented to consume log from the library.
Definition Logger.h:27
Simple interface to be implemented to provide custom log consumers to the library.
Definition LoggerProvider.h:29
virtual Logger * getLogger(const std::string &category)=0
Request for a Logger instance that will be used for logging occurring on the given category.