17 m_log(msg,
"POSIXFileHandler") {
28 const std::string& desc,
Io::Fd& fd,
void*& ptr) {
34 << f <<
"," << desc <<
")"
40 int mm = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH;
42 fd = open(n.c_str(), (int) f, mm);
65 <<
" when calling fdopen on " << n
74 FILE* fp = fdopen(fd, m.c_str());
109 if (close(fd) != 0) {
Io::close_t closePOSIXFile(Io::Fd fd)
Io::reopen_t reopenPOSIXFile(Io::Fd fd, const Io::IoFlags &)
MSG::Level level()
Retrieve output level.
POSIXFileHandler(IMessageSvc *)
virtual int outputLevel() const =0
Retrieve the current output level threshold.
The IMessage is the interface implemented by the message service.
Io::open_t openPOSIXFile(const std::string &n, const Io::IoFlags &f, const std::string &desc, Io::Fd &fd, void *&ptr)
void setLevel(int level)
Update outputlevel.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.