示例#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);
}