* logger.c : file logging plugin for vlc
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: logger.c,v 1.6 2003/03/30 14:24:20 gbazin Exp $
+ * $Id: logger.c,v 1.10 2004/01/25 17:20:19 kuehne Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
/*****************************************************************************
* Module descriptor
*****************************************************************************/
-static char *mode_list[] = { "text", "html", NULL };
-#define LOGMODE_TEXT N_("log format")
-#define LOGMODE_LONGTEXT N_("Specify the log format. Available choices are \"text\" (default) and \"html\"")
+static char *mode_list[] = { "text", "html" };
+static char *mode_list_text[] = { N_("Text"), N_("Html") };
+
+#define LOGMODE_TEXT N_("Log format")
+#define LOGMODE_LONGTEXT N_("Specify the log format. Available choices are \"text\" (default) and \"html\".")
+
vlc_module_begin();
add_category_hint( N_("Miscellaneous"), NULL, VLC_FALSE );
- add_file( "logfile", NULL, NULL, N_("log filename"), N_("Specify the log filename."), VLC_FALSE );
- add_string_from_list( "logmode", "text", mode_list, NULL, LOGMODE_TEXT, LOGMODE_LONGTEXT, VLC_FALSE );
- set_description( _("file logging interface module") );
+ add_file( "logfile", NULL, NULL, N_("Log filename"), N_("Specify the log filename."), VLC_FALSE );
+ add_string( "logmode", "text", NULL, LOGMODE_TEXT, LOGMODE_LONGTEXT,
+ VLC_FALSE );
+ change_string_list( mode_list, mode_list_text, 0 );
+ set_description( _("File logging interface") );
set_capability( "interface", 0 );
set_callbacks( Open, Close );
vlc_module_end();
char *psz_mode, *psz_file;
CONSOLE_INTRO_MSG;
- msg_Info( p_intf, _("Using the logger interface plugin...") );
+ msg_Info( p_intf, "Using the logger interface module..." );
/* Allocate instance and initialize some members */
p_intf->p_sys = (intf_sys_t *)malloc( sizeof( intf_sys_t ) );
break;
}
- msg_Warn( p_intf, "no log filename provided, using `%s'", psz_file );
+ msg_Warn( p_intf, no log filename provided, using `%s'", psz_file );
}
/* Open the log file and remove any buffering for the stream */