log.cpp 368 B

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