ifw-fgf 2.0.0
 
Loading...
Searching...
No Matches
logger.hpp File Reference

Logging definitions. More...

#include <string>
#include <cstdarg>
#include <open62541/plugin/log_stdout.h>
#include <open62541/server.h>
#include <open62541/server_config_default.h>
#include <log4cplus/loggingmacros.h>
#include <log4cplus/logger.h>

Go to the source code of this file.

Namespaces

namespace  ifw
 
namespace  ifw::fgf
 
namespace  ifw::fgf::common
 

Functions

const std::string & ifw::fgf::common::LogPropertiesName (const std::string &log_properties={})
 
const std::string & ifw::fgf::common::AppLogName (const std::string &logger_name={})
 Get/optionally set the application logger name (e.g. "fgfapp").
 
void ifw::fgf::common::ConfigureLogging ()
 One-time logging configuration (idempotent; safe to call many times).
 
log4cplus::Logger & ifw::fgf::common::GetRootLogger ()
 Root/application loggers (configured on first use).
 
log4cplus::Logger & ifw::fgf::common::GetAppLogger ()
 
std::string ifw::fgf::common::FindFile (const std::string &resource_filename)
 Resolve a resource file (e.g. properties) using your search rules.
 
void ifw::fgf::common::CustomOpen62541Log (void *log_context, UA_LogLevel level, UA_LogCategory category, const char *msg, va_list args)
 open62541 logging callback (attach via cfg->logger.log = &CustomOpen62541Log).
 
UA_Logger ifw::fgf::common::make_ua_logger (void *context=nullptr, UA_LogLevel min=UA_LOGLEVEL_INFO)
 Convenience: build a UA_Logger value you can assign to cfg->logger.
 

Variables

UA_Logger ifw::fgf::common::s_custom_logger = { &CustomOpen62541Log, nullptr }
 

Detailed Description

Logging definitions.