1 #include "rar.hpp" 2 3 4 static char LogName[NM]; 5 InitLogOptions(char * LogName)6void InitLogOptions(char *LogName) 7 { 8 strcpy(::LogName,LogName); 9 } 10 11 12 #ifndef SILENT Log(const char * ArcName,const char * Format,...)13void Log(const char *ArcName,const char *Format,...) 14 { 15 safebuf char Msg[2*NM+1024]; 16 va_list ArgPtr; 17 va_start(ArgPtr,Format); 18 vsprintf(Msg,Format,ArgPtr); 19 va_end(ArgPtr); 20 eprintf("%s",Msg); 21 } 22 #endif 23 24 25