logger.c File Reference

Include dependency graph for logger.c:


Data Structures

struct  intf_sys_t

Defines

#define MODE_TEXT   0
#define MODE_HTML   1
#define MODE_SYSLOG   2
#define LOG_FILE_TEXT   "vlc-log.txt"
#define LOG_FILE_HTML   "vlc-log.html"
#define LOG_STRING(msg, file)   fwrite( msg, strlen( msg ), 1, file );
#define TEXT_HEADER   "-- logger module started --\n"
#define TEXT_FOOTER   "-- logger module stopped --\n"
#define HTML_HEADER
#define HTML_FOOTER
#define LOGMODE_TEXT   N_("Log format")
#define LOGMODE_LONGTEXT

Functions

static int Open (vlc_object_t *)
static void Close (vlc_object_t *)
static void Run (intf_thread_t *)
static void FlushQueue (msg_subscription_t *, FILE *, int, int)
static void TextPrint (const msg_item_t *, FILE *)
static void HtmlPrint (const msg_item_t *, FILE *)
static void DoRRD (intf_thread_t *p_intf)
int vlc_entry__main (module_t *p_module)
const char * vlc_entry_license__main (void)

Variables

static const char *const mode_list []
static const char *const mode_list_text []
static const char * ppsz_type [4]

Define Documentation

#define HTML_FOOTER

Value:

"      <b>-- logger module stopped --</b>\n" \
    "    </pre>\n" \
    "  </body>\n" \
    "</html>\n"

#define HTML_HEADER

Value:

"<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\n" \
    "  \"http://www.w3.org/TR/html4/strict.dtd\">\n" \
    "<html>\n" \
    "  <head>\n" \
    "    <title>vlc log</title>\n" \
    "    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n" \
    "  </head>\n" \
    "  <body style=\"background-color: #000000; color: #aaaaaa;\">\n" \
    "    <pre>\n" \
    "      <b>-- logger module started --</b>\n"

#define LOG_FILE_HTML   "vlc-log.html"

#define LOG_FILE_TEXT   "vlc-log.txt"

#define LOG_STRING ( msg,
file   )     fwrite( msg, strlen( msg ), 1, file );

#define LOGMODE_LONGTEXT

Value:

N_("Specify the log format. Available choices are " \
  "\"text\" (default) and \"html\".")

#define LOGMODE_TEXT   N_("Log format")

#define MODE_HTML   1

#define MODE_SYSLOG   2

#define MODE_TEXT   0

#define TEXT_FOOTER   "-- logger module stopped --\n"

#define TEXT_HEADER   "-- logger module started --\n"


Function Documentation

static void Close ( vlc_object_t  )  [static]

static void DoRRD ( intf_thread_t p_intf  )  [static]

static void FlushQueue ( msg_subscription_t ,
FILE *  ,
int  ,
int   
) [static]

static void HtmlPrint ( const msg_item_t *  ,
FILE *   
) [static]

static int Open ( vlc_object_t  )  [static]

static void Run ( intf_thread_t  )  [static]

static void TextPrint ( const msg_item_t *  ,
FILE *   
) [static]

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


Variable Documentation

const char* const mode_list[] [static]

Initial value:

 { "text", "html"



}

const char* const mode_list_text[] [static]

Initial value:

 { N_("Text"), "HTML"



}

const char* ppsz_type[4] [static]

Initial value:

 { ": ", " error: ",
                                    " warning: ", " debug: " }


Generated on Wed Aug 13 08:04:40 2008 for VLC by  doxygen 1.5.1