예제 #1
0
파일: logs.hpp 프로젝트: glftpd/ebftpd
void Security(const std::string& what, const std::string& format, const Args&... args)
{
  extern Logger security;
  std::ostringstream os;
  os << util::ToUpperCopy(what) << ": " << format;
  security.PushEntry("message", util::Format()(os.str(), args...).String());
}
예제 #2
0
파일: logs.hpp 프로젝트: arrrrrrr/ebftpd
inline void Security(const std::string& what, const std::string& message)
{
  extern Logger security;
  std::ostringstream os;
  os << util::ToUpperCopy(what) << ": " << message;
  security.PushEntry("message", os.str());
}
예제 #3
0
파일: logs.hpp 프로젝트: glftpd/ebftpd
inline void Transfer(const std::string& path, const std::string& direction, 
      const std::string& username, const std::string& groupname, 
      double startTime, long long kBytes, double xfertime, 
      bool okay, const std::string& section)
{
  extern Logger transfer;
  transfer.PushEntry(QuoteOn(), "epoch start", startTime, "direction", direction,
                     "username", username, "groupname", groupname,
                     "size", kBytes, "seconds", xfertime, "okay", okay ? "okay" : "fail",
                     "section", section, "path", path);
}
예제 #4
0
파일: logs.hpp 프로젝트: glftpd/ebftpd
void Debug(const std::string& format, const Args&... args)
{
  extern Logger debug;
  extern std::string ThreadID();
  debug.PushEntry("thread", Brackets('[', ']'), ThreadID(), "message", util::Format()(format, args...).String());
}
예제 #5
0
파일: logs.hpp 프로젝트: glftpd/ebftpd
void Event(const std::string& what, const Args&... args)
{
  extern Logger events;
  events.PushEntry("event", Tag(), util::ToUpperCopy(what), QuoteOn(), args...);
}
예제 #6
0
파일: logs.hpp 프로젝트: glftpd/ebftpd
void Siteop(const std::string& admin, const std::string& format, const Args&... args)
{
  extern Logger siteop;
  siteop.PushEntry("admin", Quote('\''), admin, "message", util::Format()(format, args...));
}
예제 #7
0
파일: logs.hpp 프로젝트: arrrrrrr/ebftpd
void Database(const std::string& format, const Args&... args)
{
  extern Logger db;
  db.PushEntry("message", util::Format()(format, args...).String());
}
예제 #8
0
파일: logs.hpp 프로젝트: arrrrrrr/ebftpd
inline void Database(const std::string& message)
{
  extern Logger db;
  db.PushEntry("message", message);
}
예제 #9
0
파일: logs.hpp 프로젝트: arrrrrrr/ebftpd
void Debug(const std::string& format, const Args&... args)
{
  extern Logger debug;
  debug.PushEntry("message", util::Format()(format, args...).String());
}
예제 #10
0
파일: logs.hpp 프로젝트: arrrrrrr/ebftpd
inline void Debug(const std::string& message)
{
  extern Logger debug;
  debug.PushEntry("message", message);
}
예제 #11
0
파일: logs.hpp 프로젝트: arrrrrrr/ebftpd
inline void Siteop(const std::string& admin, const std::string& message)
{
  extern Logger siteop;
  siteop.PushEntry("admin", Quote('\''), admin, "message",  message);
}
예제 #12
0
파일: logs.hpp 프로젝트: arrrrrrr/ebftpd
void Error(const std::string& format, const Args&... args)
{
  extern Logger error;
  error.PushEntry("message", util::Format()(format, args...).String());
}
예제 #13
0
파일: logs.hpp 프로젝트: arrrrrrr/ebftpd
inline void Error(const std::string& message)
{
  extern Logger error;
  error.PushEntry("message", message);
}