FFmpegfs Fuse Multi Media Filesystem 2.16
Macros | Functions
logging.cc File Reference

Log facilities implementation. More...

#include "logging.h"
#include "ffmpegfs.h"
#include <sys/time.h>
#include <cstdarg>
#include <iostream>
#include <syslog.h>
#include <ostream>
Include dependency graph for logging.cc:

Go to the source code of this file.

Macros

#define COLOUR_BLACK   "\033[0;30m"
 ANSI ESC for black foreground. More...
 
#define COLOUR_DARK_GRAY   "\033[1;30m"
 ANSI ESC for dark gray foreground. More...
 
#define COLOUR_LIGHT_GRAY   "\033[0;37m"
 ANSI ESC for light gray foreground. More...
 
#define COLOUR_RED   "\033[0;31m"
 ANSI ESC for red foreground. More...
 
#define COLOUR_LIGHT_RED   "\033[1;31m"
 ANSI ESC for light red foreground. More...
 
#define COLOUR_GREEN   "\033[0;32m"
 ANSI ESC for green foreground. More...
 
#define COLOUR_LIGHT_GREEN   "\033[1;32m"
 ANSI ESC for light green foreground. More...
 
#define COLOUR_BROWN_ORANGE   "\033[0;33m"
 ANSI ESC for brown orange foreground. More...
 
#define COLOUR_YELLOW   "\033[1;33m"
 ANSI ESC for yellow foreground. More...
 
#define COLOUR_BLUE   "\033[0;34m"
 ANSI ESC for blue foreground. More...
 
#define COLOUR_LIGHT_BLUE   "\033[1;34m"
 ANSI ESC for light blue foreground. More...
 
#define COLOUR_PURPLE   "\033[0;35m"
 ANSI ESC for purple foreground. More...
 
#define COLOUR_LIGHT_PURPLE   "\033[1;35m"
 ANSI ESC for light purple foreground. More...
 
#define COLOUR_CYAN   "\033[0;36m"
 ANSI ESC for cyan foreground. More...
 
#define COLOUR_LIGHT_CYAN   "\033[1;36m"
 ANSI ESC for light cyan foreground. More...
 
#define COLOUR_WHITE   "\033[1;37m"
 ANSI ESC for white foreground. More...
 
#define COLOUR_RESET   "\033[0m"
 ANSI ESC to reset the foreground colour. More...
 

Functions

Logging::Logger Log (Logging::LOGLEVEL loglevel, const std::string &filename)
 

Detailed Description

Log facilities implementation.

Author
K. Henriksson, Norbert Schlia (nschl.nosp@m.ia@o.nosp@m.blivi.nosp@m.on-s.nosp@m.oftwa.nosp@m.re.d.nosp@m.e)

Definition in file logging.cc.

Macro Definition Documentation

◆ COLOUR_BLACK

#define COLOUR_BLACK   "\033[0;30m"

ANSI ESC for black foreground.

Definition at line 44 of file logging.cc.

◆ COLOUR_BLUE

#define COLOUR_BLUE   "\033[0;34m"

ANSI ESC for blue foreground.

Definition at line 53 of file logging.cc.

◆ COLOUR_BROWN_ORANGE

#define COLOUR_BROWN_ORANGE   "\033[0;33m"

ANSI ESC for brown orange foreground.

Definition at line 51 of file logging.cc.

◆ COLOUR_CYAN

#define COLOUR_CYAN   "\033[0;36m"

ANSI ESC for cyan foreground.

Definition at line 57 of file logging.cc.

◆ COLOUR_DARK_GRAY

#define COLOUR_DARK_GRAY   "\033[1;30m"

ANSI ESC for dark gray foreground.

Definition at line 45 of file logging.cc.

◆ COLOUR_GREEN

#define COLOUR_GREEN   "\033[0;32m"

ANSI ESC for green foreground.

Definition at line 49 of file logging.cc.

◆ COLOUR_LIGHT_BLUE

#define COLOUR_LIGHT_BLUE   "\033[1;34m"

ANSI ESC for light blue foreground.

Definition at line 54 of file logging.cc.

◆ COLOUR_LIGHT_CYAN

#define COLOUR_LIGHT_CYAN   "\033[1;36m"

ANSI ESC for light cyan foreground.

Definition at line 58 of file logging.cc.

◆ COLOUR_LIGHT_GRAY

#define COLOUR_LIGHT_GRAY   "\033[0;37m"

ANSI ESC for light gray foreground.

Definition at line 46 of file logging.cc.

◆ COLOUR_LIGHT_GREEN

#define COLOUR_LIGHT_GREEN   "\033[1;32m"

ANSI ESC for light green foreground.

Definition at line 50 of file logging.cc.

◆ COLOUR_LIGHT_PURPLE

#define COLOUR_LIGHT_PURPLE   "\033[1;35m"

ANSI ESC for light purple foreground.

Definition at line 56 of file logging.cc.

◆ COLOUR_LIGHT_RED

#define COLOUR_LIGHT_RED   "\033[1;31m"

ANSI ESC for light red foreground.

Definition at line 48 of file logging.cc.

◆ COLOUR_PURPLE

#define COLOUR_PURPLE   "\033[0;35m"

ANSI ESC for purple foreground.

Definition at line 55 of file logging.cc.

◆ COLOUR_RED

#define COLOUR_RED   "\033[0;31m"

ANSI ESC for red foreground.

Definition at line 47 of file logging.cc.

◆ COLOUR_RESET

#define COLOUR_RESET   "\033[0m"

ANSI ESC to reset the foreground colour.

Definition at line 60 of file logging.cc.

◆ COLOUR_WHITE

#define COLOUR_WHITE   "\033[1;37m"

ANSI ESC for white foreground.

Definition at line 59 of file logging.cc.

◆ COLOUR_YELLOW

#define COLOUR_YELLOW   "\033[1;33m"

ANSI ESC for yellow foreground.

Definition at line 52 of file logging.cc.

Function Documentation

◆ Log()

Logging::Logger Log ( Logging::LOGLEVEL  loglevel,
const std::string &  filename 
)
Parameters
[in]loglevel- The level of log this message is for.
[in]filename- Name of the file for which this log entry was written. May be empty.

Definition at line 205 of file logging.cc.