AvTranscoder  0.9.4
C++APIforLibav/FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
avtranscoder::Logger Class Reference

Logger class which contains static functions to use ffmpeg/libav log system. More...

#include <log.hpp>

Static Public Member Functions

static void setLogLevel (const int level)
 Set the log level of ffmpeg/libav. More...
 
static void log (const int level, const std::string &msg)
 Log with the ffmpeg/libav log system. More...
 
static void logInFile ()
 Log ffmpeg/libav and avtranscoder informations in a text file. More...
 

Static Private Attributes

static std::string logHeaderMessage = ""
 First caracters present for each logging message. More...
 

Detailed Description

Logger class which contains static functions to use ffmpeg/libav log system.

Definition at line 43 of file log.hpp.

Member Function Documentation

void avtranscoder::Logger::log ( const int  level,
const std::string &  msg 
)
static

Log with the ffmpeg/libav log system.

Note
you can use macro LOG_* to log at DEBUG/INFO/WARN/ERROR level
Parameters
msgthe message will be prefixed by '[avTranscoder - <level>]'
msgthe message will be suffixed by '
'

Definition at line 31 of file log.cpp.

void avtranscoder::Logger::logInFile ( )
static

Log ffmpeg/libav and avtranscoder informations in a text file.

Note
log filename is avtranscoder.log

Definition at line 62 of file log.cpp.

References avtranscoder::callbackToWriteInFile(), and LOG_FILE.

Referenced by main().

void avtranscoder::Logger::setLogLevel ( const int  level)
static

Set the log level of ffmpeg/libav.

Parameters
levelrefer to define AV_LOG_xxx (from AV_LOG_QUIET to AV_LOG_DEBUG)
Note
By default AV_LOG_INFO
See also
SWIG interface avLogLevel.i

Definition at line 26 of file log.cpp.

Referenced by main().

Field Documentation

std::string avtranscoder::Logger::logHeaderMessage = ""
staticprivate

First caracters present for each logging message.

Definition at line 69 of file log.hpp.


The documentation for this class was generated from the following files:
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy