Tango Core Classes Reference  9.3.6
Tango::Logging Class Reference

#include "logging.h"

Static Public Member Functions

static void add_logging_target (const DevVarStringArray *argin)
 Implementation of the DServer AddLoggingTarget Tango command. More...
 
static void add_logging_target (log4tango::Logger *logger, const std::string &tg_type, const std::string &tg_name, int throw_exception=1)
 Implementation of the DServer AddLoggingTarget Tango command. More...
 
static void add_logging_target (log4tango::Logger *logger, const std::string &tg_type_name, int throw_exception=1)
 Implementation of the DServer AddLoggingTarget Tango command. More...
 
static void cleanup (void)
 Shutdown the Tango Logging service. More...
 
static log4tango::Loggerget_core_logger (void)
 Returns the core logger substitute. More...
 
static DevVarLongStringArray * get_logging_level (const DevVarStringArray *argin)
 Implementation of the DServer GetLoggingLevel Tango command. More...
 
static DevVarStringArray * get_logging_target (const std::string &dev_name)
 Implementation of the DServer GetLoggingTarget Tango command. More...
 
static void init (const std::string &ds_name, int cmd_line_level, bool use_tango_db, Database &db, Util *tg)
 Initializes the Tango Logging service (TLS) More...
 
static Tango::LogLevel log4tango_to_tango_level (log4tango::Level::Value log4tango_level)
 Converts a log4tango level into a Tango logging level. More...
 
static void remove_logging_target (const DevVarStringArray *argin)
 Implementation of the DServer RemoveLoggingTarget Tango command. More...
 
static void set_logging_level (const DevVarLongStringArray *argin)
 Implementation of the DServer SetLoggingLevel Tango command. More...
 
static void set_rolling_file_threshold (log4tango::Logger *logger, size_t rtf)
 Modify the rolling file threshold of the given Logger. More...
 
static void start_logging (void)
 Implementation of the DServer StartLogging Tango command. More...
 
static void stop_logging (void)
 Implementation of the DServer StopLogging Tango command. More...
 
static log4tango::Level::Value tango_to_log4tango_level (const std::string &tango_level, bool throw_exception=true)
 Converts a Tango logging level into a log4tango level. More...
 
static log4tango::Level::Value tango_to_log4tango_level (Tango::LogLevel tango_level, bool throw_exception=true)
 Converts a Tango logging level into a log4tango level. More...
 

Member Function Documentation

◆ add_logging_target() [1/3]

static void Tango::Logging::add_logging_target ( const DevVarStringArray *  argin)
static

Implementation of the DServer AddLoggingTarget Tango command.

◆ add_logging_target() [2/3]

static void Tango::Logging::add_logging_target ( log4tango::Logger logger,
const std::string &  tg_type,
const std::string &  tg_name,
int  throw_exception = 1 
)
static

Implementation of the DServer AddLoggingTarget Tango command.

◆ add_logging_target() [3/3]

static void Tango::Logging::add_logging_target ( log4tango::Logger logger,
const std::string &  tg_type_name,
int  throw_exception = 1 
)
static

Implementation of the DServer AddLoggingTarget Tango command.

◆ cleanup()

static void Tango::Logging::cleanup ( void  )
static

Shutdown the Tango Logging service.

◆ get_core_logger()

static log4tango::Logger* Tango::Logging::get_core_logger ( void  )
inlinestatic

Returns the core logger substitute.

References Tango::_core_logger.

◆ get_logging_level()

static DevVarLongStringArray* Tango::Logging::get_logging_level ( const DevVarStringArray *  argin)
static

Implementation of the DServer GetLoggingLevel Tango command.

◆ get_logging_target()

static DevVarStringArray* Tango::Logging::get_logging_target ( const std::string &  dev_name)
static

Implementation of the DServer GetLoggingTarget Tango command.

◆ init()

static void Tango::Logging::init ( const std::string &  ds_name,
int  cmd_line_level,
bool  use_tango_db,
Database db,
Util tg 
)
static

Initializes the Tango Logging service (TLS)

◆ log4tango_to_tango_level()

static Tango::LogLevel Tango::Logging::log4tango_to_tango_level ( log4tango::Level::Value  log4tango_level)
static

Converts a log4tango level into a Tango logging level.

◆ remove_logging_target()

static void Tango::Logging::remove_logging_target ( const DevVarStringArray *  argin)
static

Implementation of the DServer RemoveLoggingTarget Tango command.

◆ set_logging_level()

static void Tango::Logging::set_logging_level ( const DevVarLongStringArray *  argin)
static

Implementation of the DServer SetLoggingLevel Tango command.

◆ set_rolling_file_threshold()

static void Tango::Logging::set_rolling_file_threshold ( log4tango::Logger logger,
size_t  rtf 
)
static

Modify the rolling file threshold of the given Logger.

◆ start_logging()

static void Tango::Logging::start_logging ( void  )
static

Implementation of the DServer StartLogging Tango command.

◆ stop_logging()

static void Tango::Logging::stop_logging ( void  )
static

Implementation of the DServer StopLogging Tango command.

◆ tango_to_log4tango_level() [1/2]

static log4tango::Level::Value Tango::Logging::tango_to_log4tango_level ( const std::string &  tango_level,
bool  throw_exception = true 
)
static

Converts a Tango logging level into a log4tango level.

◆ tango_to_log4tango_level() [2/2]

static log4tango::Level::Value Tango::Logging::tango_to_log4tango_level ( Tango::LogLevel  tango_level,
bool  throw_exception = true 
)
static

Converts a Tango logging level into a log4tango level.


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