USBGuard
Software framework that protects your computer against rogue USB devices by implementing basic whitelisting and blacklisting capabilities.
Public Member Functions | List of all members
usbguard::AuditFileSink Class Reference
Inheritance diagram for usbguard::AuditFileSink:
usbguard::OStreamSink usbguard::LogSink

Public Member Functions

 AuditFileSink (const std::string &filepath)
 
void write (const LogStream::Source &source, LogStream::Level level, const std::string &message)
 Writes given information into the sink. More...
 
- Public Member Functions inherited from usbguard::OStreamSink
 OStreamSink (const std::string &name, std::ostream &stream)
 
- Public Member Functions inherited from usbguard::LogSink
 LogSink (const std::string &name)
 Constructs logger output sink with given name. More...
 
virtual ~LogSink ()
 Default destructor.
 
const std::string & name () const
 Returns name of the sink. More...
 

Member Function Documentation

◆ write()

void usbguard::AuditFileSink::write ( const LogStream::Source source,
LogStream::Level  level,
const std::string &  message 
)
inlinevirtual

Writes given information into the sink.

Parameters
sourceSource.
levelLog level.
messagemessage.

Reimplemented from usbguard::OStreamSink.


The documentation for this class was generated from the following file: