/*
 * SPDX-FileCopyrightText: 2000-2002 Copyright LifeLine Networks BV (www.lifeline.nl)
 * SPDX-FileCopyrightText: 2000-2002 Copyright Bastiaan Bakker
 * SPDX-FileCopyrightText: 2004 Copyright contributors to the cppTango project
 *
 * SPDX-License-Identifier: LGPL-3.0-or-later
 */

#include <tango/common/log4tango/LoggingEvent.h>

#include <tango/common/log4tango/Portability.h>

#include <chrono>

namespace log4tango
{

LoggingEvent::LoggingEvent(const std::string &_logger_name,
                           const std::string &_message,
                           Level::Value _level,
                           const std::string &_file_path,
                           int _line_number) :
    logger_name(_logger_name),
    message(_message),
    level(_level),
    thread_id(std::this_thread::get_id()),
    timestamp(std::chrono::system_clock::now()),
    file_path(_file_path),
    line_number(_line_number)
{
    //-- thread_name = threading::get_thread_id();
}

LoggingEvent::LoggingEvent(const LoggingEvent &_src) = default;

} // namespace log4tango
