FFmpegKit Linux API  4.5.1
Log.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2022 Taner Sener
3  *
4  * This file is part of FFmpegKit.
5  *
6  * FFmpegKit is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * FFmpegKit is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU Lesser General License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General License
17  * along with FFmpegKit. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef FFMPEG_KIT_LOG_H
21 #define FFMPEG_KIT_LOG_H
22 
23 #include "Level.h"
24 #include <string>
25 
26 namespace ffmpegkit {
27 
31  class Log {
32  public:
33  Log(const long sessionId, const ffmpegkit::Level level, const char* message);
34  long getSessionId() const;
35  ffmpegkit::Level getLevel() const;
36  std::string getMessage() const;
37 
38  private:
39  long _sessionId;
41  std::string _message;
42  };
43 
44 }
45 
46 #endif // FFMPEG_KIT_LOG_H
ffmpegkit::Log::_message
std::string _message
Definition: Log.h:41
ffmpegkit
Definition: AbstractSession.h:25
ffmpegkit::Log::_sessionId
long _sessionId
Definition: Log.h:39
ffmpegkit::Level
Level
Definition: Level.h:28
ffmpegkit::Log::_level
ffmpegkit::Level _level
Definition: Log.h:40
ffmpegkit::Log::getMessage
std::string getMessage() const
Definition: Log.cpp:33
ffmpegkit::Log
Definition: Log.h:31
ffmpegkit::Log::getLevel
ffmpegkit::Level getLevel() const
Definition: Log.cpp:29
ffmpegkit::Log::Log
Log(const long sessionId, const ffmpegkit::Level level, const char *message)
Definition: Log.cpp:22
Level.h
ffmpegkit::Log::getSessionId
long getSessionId() const
Definition: Log.cpp:25