|
OpenShot Library | libopenshot 1.1.1
|
Independent file and stderr logging. No networking or worker thread. More...
#include <Logger.h>
Public Types | |
| enum | Level { LevelDebug = 10 , LevelInfo = 20 , LevelWarning = 30 , LevelError = 40 , LevelCritical = 50 , LevelOff = 100 } |
Public Member Functions | |
| void | AppendDebugMethod (std::string method_name, std::string arg1_name="", float arg1_value=-1.0, std::string arg2_name="", float arg2_value=-1.0, std::string arg3_name="", float arg3_value=-1.0, std::string arg4_name="", float arg4_value=-1.0, std::string arg5_name="", float arg5_value=-1.0, std::string arg6_name="", float arg6_value=-1.0) |
| void | Close () |
| void | Connection (std::string connection) |
| Deprecated compatibility no-op; logging no longer uses connections. More... | |
| void | Enable (bool enabled) |
| Compatibility: enable debug file output, or disable ordinary file output. More... | |
| void | Log (std::string message, Level level=LevelDebug) |
| void | LogToFile (std::string message) |
| Unfiltered raw output, retained for the existing crash handler. More... | |
| void | Path (std::string path) |
| void | SetConsoleLevel (std::string level) |
| void | SetFileLevel (std::string level) |
| Explicit configuration overrides environment defaults. Invalid levels throw. More... | |
| bool | ShouldLog (Level level=LevelDebug) const |
Static Public Member Functions | |
| static Logger * | Instance () |
Independent file and stderr logging. No networking or worker thread.
| void Logger::AppendDebugMethod | ( | std::string | method_name, |
| std::string | arg1_name = "", |
||
| float | arg1_value = -1.0, |
||
| std::string | arg2_name = "", |
||
| float | arg2_value = -1.0, |
||
| std::string | arg3_name = "", |
||
| float | arg3_value = -1.0, |
||
| std::string | arg4_name = "", |
||
| float | arg4_value = -1.0, |
||
| std::string | arg5_name = "", |
||
| float | arg5_value = -1.0, |
||
| std::string | arg6_name = "", |
||
| float | arg6_value = -1.0 |
||
| ) |
Definition at line 168 of file Logger.cpp.
Referenced by openshot::Timeline::apply_effects(), openshot::FrameMapper::ChangeMapping(), openshot::Timeline::Clear(), openshot::FFmpegWriter::Close(), openshot::ImageWriter::Close(), openshot::Clip::Close(), openshot::FrameMapper::Close(), openshot::Timeline::Close(), openshot::FFmpegReader::GetFrame(), openshot::FrameMapper::GetFrame(), openshot::Timeline::GetFrame(), openshot::FrameMapper::GetMappedFrame(), if(), openshot::AudioDeviceManagerSingleton::Instance(), openshot::FFmpegReader::Open(), openshot::FrameMapper::Open(), openshot::FFmpegWriter::PrepareStreams(), openshot::FrameMapper::ResampleMappedAudio(), openshot::FFmpegWriter::SetAudioOptions(), openshot::FFmpegWriter::SetOption(), openshot::FFmpegWriter::SetVideoOptions(), openshot::ImageWriter::SetVideoOptions(), openshot::ImageWriter::WriteFrame(), openshot::FFmpegWriter::WriteFrame(), openshot::FFmpegWriter::WriteFrameAt(), openshot::FFmpegWriter::WriteHeader(), and openshot::FFmpegWriter::WriteTrailer().
| void Logger::Close | ( | ) |
Definition at line 158 of file Logger.cpp.
|
inline |
| void Logger::Enable | ( | bool | enabled | ) |
Compatibility: enable debug file output, or disable ordinary file output.
Definition at line 109 of file Logger.cpp.
|
static |
Definition at line 55 of file Logger.cpp.
Referenced by openshot::Timeline::apply_effects(), openshot::FrameMapper::ChangeMapping(), openshot::Timeline::Clear(), openshot::FFmpegWriter::Close(), openshot::ImageWriter::Close(), openshot::Clip::Close(), openshot::FrameMapper::Close(), openshot::Timeline::Close(), openshot::FFmpegReader::GetFrame(), openshot::FrameMapper::GetFrame(), openshot::Timeline::GetFrame(), openshot::FrameMapper::GetMappedFrame(), if(), openshot::AudioDeviceManagerSingleton::Instance(), openshot::CVObjectMask::maskClip(), openshot::FFmpegReader::Open(), openshot::FrameMapper::Open(), openshot::FFmpegWriter::PrepareStreams(), openshot::CrashHandler::printStackTrace(), openshot::FrameMapper::ResampleMappedAudio(), openshot::FFmpegWriter::SetAudioOptions(), openshot::FFmpegWriter::SetOption(), openshot::FFmpegWriter::SetVideoOptions(), openshot::ImageWriter::SetVideoOptions(), openshot::ImageWriter::WriteFrame(), openshot::FFmpegWriter::WriteFrame(), openshot::FFmpegWriter::WriteFrameAt(), openshot::FFmpegWriter::WriteHeader(), and openshot::FFmpegWriter::WriteTrailer().
| void Logger::Log | ( | std::string | message, |
| Level | level = LevelDebug |
||
| ) |
Definition at line 146 of file Logger.cpp.
Referenced by AppendDebugMethod(), and openshot::CVObjectMask::maskClip().
| void Logger::LogToFile | ( | std::string | message | ) |
Unfiltered raw output, retained for the existing crash handler.
Definition at line 142 of file Logger.cpp.
Referenced by Log(), and openshot::CrashHandler::printStackTrace().
| void Logger::Path | ( | std::string | path | ) |
Definition at line 111 of file Logger.cpp.
| void Logger::SetConsoleLevel | ( | std::string | level | ) |
Definition at line 105 of file Logger.cpp.
| void Logger::SetFileLevel | ( | std::string | level | ) |
Explicit configuration overrides environment defaults. Invalid levels throw.
Definition at line 104 of file Logger.cpp.
| bool Logger::ShouldLog | ( | Level | level = LevelDebug | ) | const |
Definition at line 101 of file Logger.cpp.
Referenced by AppendDebugMethod(), and Log().