void getLoggingMethods(FB::Log::LogMethodList& outMethods) { // The next line will enable logging to the console (think: printf). outMethods.push_back( std::make_pair(FB::Log::LogMethod_Console, std::string())); // The next line will enable logging to a logfile. outMethods.push_back( std::make_pair(FB::Log::LogMethod_File, "/Users/xzhang/cmpt/chrome/log")); // Obviously, if you use both lines, you will get output on both sinks. }
// Set FireBreath's log methods void getLoggingMethods(FB::Log::LogMethodList& outMethods) { outMethods.push_back(std::make_pair(FB::Log::LogMethod_Console, std::string())); }
void FB::FactoryBase::getLoggingMethods( FB::Log::LogMethodList& outMethods ) { #ifndef NDEBUG outMethods.push_back(std::make_pair(FB::Log::LogMethod_Console, std::string())); #endif }
void getLoggingMethods( FB::Log::LogMethodList& outMethods ) { outMethods.push_back(std::make_pair(FB::Log::LogMethod_File, "/tmp/trezor.log")); }