1 #include "rar.hpp"
2 
3 
4 static char LogName[NM];
5 
InitLogOptions(char * LogName)6 void InitLogOptions(char *LogName)
7 {
8   strcpy(::LogName,LogName);
9 }
10 
11 
12 #ifndef SILENT
Log(const char * ArcName,const char * Format,...)13 void 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