10     std::ofstream outputFile;
 
   11     outputFile.open(
LOG_FILE, std::ios::out | std::ios::app);
 
   13 #ifdef AVTRANSCODER_FFMPEG_DEPENDENCY 
   16     static int print_prefix = 1;
 
   17     av_log_format_line(ptr, level, fmt, vl, line, 
sizeof(line), &print_prefix); 
 
   20     outputFile << 
"Warning: currently can't log in file with avtranscoder when depending on libav" << std::endl;
 
   28     av_log_set_level(level);
 
   52     std::string logMessage = 
"[avTranscoder - " + levelStr + 
"] ";
 
   59     av_log(NULL, level, logMessage.c_str());
 
   67     std::ofstream outputFile;
 
void callbackToWriteInFile(void *ptr, int level, const char *fmt, va_list vl)
 
static void log(const int level, const std::string &msg)
Log with the ffmpeg/libav log system. 
 
static std::string logHeaderMessage
First caracters present for each logging message. 
 
static void logInFile()
Log ffmpeg/libav and avtranscoder informations in a text file. 
 
static void setLogLevel(const int level)
Set the log level of ffmpeg/libav.