<commit_before> //
 // This file is part of Easylogging++ samples
 // Demonstrates how to use log dispatch callback
 //
 // Revision 1.0
 // @author mkhan3189
 //

#include "easylogging++.h"

_INITIALIZE_EASYLOGGINGPP

class MyHandler : public el::LogDispatchCallback {
public:
    void handle(const el::LogMessage* msg) {
        LOG(INFO) << "Test MyHandler " << msg;
    }
};

class MyHtmlHandler : public el::LogDispatchCallback {
public:
    MyHtmlHandler() {
        el::Loggers::getLogger("html"); // register
        setCallbackCount(3);
    }
    void handle(const el::LogMessage* msg) {<commit_msg>More updates for log dispatch<commit_after> //
 // This file is part of Easylogging++ samples
 // Demonstrates how to use log dispatch callback
 //
 // Revision 1.0
 // @author mkhan3189
 //

#include "easylogging++.h"

_INITIALIZE_EASYLOGGINGPP

class MyHandler : public el::LogDispatchCallback {
public:
    void handle(const el::LogMessage* msg) {
        LOG(INFO) << "Test MyHandler " << msg;
    }
};

class MyHtmlHandler : public el::LogDispatchCallback {
public:
    MyHtmlHandler() {
        el::Loggers::getLogger("html"); // register
    }
    void handle(const el::LogMessage* msg) {
{'fraction_non_alphanumeric': 0.1288445552784705, 'fraction_numerical': 0.010806317539484621, 'mean_word_length': 3.36231884057971, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 3, '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': '6703642', 'n_tokens_mistral': 385, 'n_tokens_neox': 382, 'n_words': 99}