Skip to content

File logger.h

FileList > src > logger.h

Go to the source code of this file

  • #include <boost/filesystem.hpp>
  • #include <boost/log/attributes/constant.hpp>
  • #include <boost/log/core.hpp>
  • #include <boost/log/expressions.hpp>
  • #include <boost/log/sources/global_logger_storage.hpp>
  • #include <boost/log/sources/record_ostream.hpp>
  • #include <boost/log/sources/severity_channel_logger.hpp>
  • #include <boost/log/support/date_time.hpp>
  • #include <boost/log/trivial.hpp>
  • #include <boost/log/utility/setup/common_attributes.hpp>
  • #include <boost/log/utility/setup/console.hpp>

Public Types

Type Name
typedef logging::sources::severity_channel_logger_mt< logging::trivial::severity_level > XILENS_LOGGER
enum my_severity_level

Macros

Type Name
define HANDLE_CONNECTION_RESULT (status) HandleConnectionResult(status, \_\_FILE\_\_, \_\_LINE\_\_, \_\_FUNCTION\_\_)
define LOG_XILENS (lvl) /* multi line expression */

Public Types Documentation

typedef XILENS_LOGGER

typedef logging::sources::severity_channel_logger_mt<logging::trivial::severity_level> XILENS_LOGGER;

enum my_severity_level

enum my_severity_level {
    trace = boost::log::trivial::trace,
    debug = boost::log::trivial::debug,
    info = boost::log::trivial::info,
    warning = boost::log::trivial::warning,
    error = boost::log::trivial::error,
    fatal = boost::log::trivial::fatal
};

Macro Definition Documentation

define HANDLE_CONNECTION_RESULT

#define HANDLE_CONNECTION_RESULT (
    status
) `HandleConnectionResult(status, __FILE__, __LINE__, __FUNCTION__)`

Handles Qt connection results. Calls MainWindow::HandleConnectionResult with the current file, line number and function.


define LOG_XILENS

#define LOG_XILENS (
    lvl
) `/* multi line expression */`

Defines custom logger that includes filenames, functions and line numbers



The documentation for this class was generated from the following file src/logger.h