<commit_before>/**
 * @file   DefaultLogXmlNode.cpp
 * @brief  DefaultLogXmlNode class implementation.
 * @author zer0
 * @date   2017-06-02
 */

#include <libtbag/log/node/DefaultLogXmlNode.hpp>
#include <libtbag/log/Log.hpp>

// -------------------
NAMESPACE_LIBTBAG_OPEN
// -------------------

namespace log  {
namespace node {

TBAG_CONSTEXPR char const * const DEFAULT_PARENT_XML_NODE_NAME  = "default_logger";
TBAG_CONSTEXPR char const * const DEFAULT_LOGGER_FILE_EXTENSION = ".log";

DefaultLogXmlNode::DefaultLogXmlNode() : DefaultLogXmlNode(log::TBAG_DEFAULT_LOGGER_NAME)
{
    // EMPTY.
}

DefaultLogXmlNode::DefaultLogXmlNode(std::string const & name)
{
    _params = getDefaultParams(name, name);
}

DefaultLogXmlNode::DefaultLogXmlNode(std::string const & name, std::string const & file_name)
{
    _params = getDefaultParams(name, file_name);
}

DefaultLogXmlNode::DefaultLogXmlNode(InitParams const & params) : _params(params)
{
    // EMPTY.
}
<commit_msg>Trivial commit.<commit_after>/**
 * @file   DefaultLogXmlNode.cpp
 * @brief  DefaultLogXmlNode class implementation.
 * @author zer0
 * @date   2017-06-02
 */

#include <libtbag/log/node/DefaultLogXmlNode.hpp>
#include <libtbag/log/Log.hpp>

// -------------------
NAMESPACE_LIBTBAG_OPEN
// -------------------

namespace log  {
namespace node {

TBAG_CONSTEXPR static char const * const DEFAULT_PARENT_XML_NODE_NAME  = "default_logger";
TBAG_CONSTEXPR static char const * const DEFAULT_LOGGER_FILE_EXTENSION = ".log";

DefaultLogXmlNode::DefaultLogXmlNode()
{
    _params = getDefaultParams();
}

DefaultLogXmlNode::DefaultLogXmlNode(std::string const & name)
{
    _params = getDefaultParams(name, name);
}

DefaultLogXmlNode::DefaultLogXmlNode(std::string const & name, std::string const & file_name)
{
    _params = getDefaultParams(name, file_name);
}

DefaultLogXmlNode::DefaultLogXmlNode(InitParams const & params) : _params(params)
{
    // EMPTY.
}

{'fraction_non_alphanumeric': 0.1506991196271362, 'fraction_numerical': 0.009321595028482652, 'mean_word_length': 4.1796246648793565, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1443018', 'n_tokens_mistral': 658, 'n_tokens_neox': 643, 'n_words': 113}