olp-cpp-sdk  1.22.0
LogMessage.h
1 /*
2  * Copyright (C) 2019-2021 HERE Europe B.V.
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  * SPDX-License-Identifier: Apache-2.0
17  * License-Filename: LICENSE
18  */
19 
20 #pragma once
21 
22 #include <olp/core/CoreApi.h>
23 #include <olp/core/logging/Level.h>
24 #include <chrono>
25 
26 namespace olp {
27 namespace logging {
31 struct CORE_API LogMessage {
33  Level level{Level::Off};
34 
36  const char* tag{nullptr};
37 
39  const char* message{nullptr};
40 
42  const char* file{nullptr};
43 
45  unsigned int line{0};
46 
48  const char* function{nullptr};
49 
51  const char* fullFunction{nullptr};
52 
54  std::chrono::time_point<std::chrono::system_clock> time{};
55 
57  unsigned long threadId{0};
58 };
59 
60 } // namespace logging
61 } // namespace olp
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24
Contains data used for a log message.
Definition: LogMessage.h:31