Lugdunum  0.1.0
Public Member Functions | Private Member Functions | List of all members
lug::System::Logger::LogCatHandler Class Reference

#include <LogCatHandler.hpp>

Inheritance diagram for lug::System::Logger::LogCatHandler:
[legend]
Collaboration diagram for lug::System::Logger::LogCatHandler:
[legend]

Public Member Functions

 LogCatHandler (const std::string &name)
 
 LogCatHandler (const LogCatHandler &)=delete
 
 LogCatHandler (LogCatHandler &&)=delete
 
LogCatHandleroperator= (const LogCatHandler &)=delete
 
LogCatHandleroperator= (LogCatHandler &&)=delete
 
 ~LogCatHandler ()=default
 
- Public Member Functions inherited from lug::System::Logger::Handler
 Handler (const std::string &name)
 
 Handler (const Handler &)=delete
 
 Handler (Handler &&)=delete
 
Handleroperator= (const Handler &)=delete
 
Handleroperator= (Handler &&)=delete
 
virtual ~Handler ()=default
 
void setFormatter (std::unique_ptr< Formatter > formatter)
 
void setPattern (const std::string &pattern)
 
void format (priv::Message &msg)
 
bool shouldLog (Level level) const
 
void setLevel (Level level)
 
Level getLevel () const
 

Private Member Functions

void handle (const priv::Message &msg)
 
void flush ()
 
android_LogPriority lugLevelToLogCatPrio (Level level)
 

Additional Inherited Members

- Protected Attributes inherited from lug::System::Logger::Handler
std::string _name
 
std::unique_ptr< Formatter_formatter
 
Level _level
 

Detailed Description

Definition at line 10 of file LogCatHandler.hpp.

Constructor & Destructor Documentation

◆ LogCatHandler() [1/3]

lug::System::Logger::LogCatHandler::LogCatHandler ( const std::string &  name)

Definition at line 7 of file LogCatHandler.cpp.

◆ LogCatHandler() [2/3]

lug::System::Logger::LogCatHandler::LogCatHandler ( const LogCatHandler )
delete

◆ LogCatHandler() [3/3]

lug::System::Logger::LogCatHandler::LogCatHandler ( LogCatHandler &&  )
delete

◆ ~LogCatHandler()

lug::System::Logger::LogCatHandler::~LogCatHandler ( )
default

Member Function Documentation

◆ operator=() [1/2]

LogCatHandler& lug::System::Logger::LogCatHandler::operator= ( const LogCatHandler )
delete

◆ operator=() [2/2]

LogCatHandler& lug::System::Logger::LogCatHandler::operator= ( LogCatHandler &&  )
delete

◆ handle()

void lug::System::Logger::LogCatHandler::handle ( const priv::Message &  msg)
privatevirtual

Implements lug::System::Logger::Handler.

Definition at line 9 of file LogCatHandler.cpp.

◆ flush()

void lug::System::Logger::LogCatHandler::flush ( )
privatevirtual

Implements lug::System::Logger::Handler.

Definition at line 13 of file LogCatHandler.cpp.

◆ lugLevelToLogCatPrio()

android_LogPriority lug::System::Logger::LogCatHandler::lugLevelToLogCatPrio ( Level  level)
private

Definition at line 17 of file LogCatHandler.cpp.


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