<commit_before>#include <iostream>
#include <vector>
#include <memory>
#include <iterator>
#include "game.hpp"
#include <SDL.h>
#define SPDLOG_NO_NAME
#define SPDLOG_NO_THREAD_ID // Might be useful to enable later but atm meh
#include <spdlog/spdlog.h>

// Eventually we will want to load configuration files somewhere in here.
// This also means the VFS needs to be setup here as well
int main()
{
    std::shared_ptr<spdlog::logger> logger;
    try {
        std::vector<spdlog::sink_ptr> sinks;
        // I would like to use the sink that does color output to the console
        // but it doesnt yet work for windows.
        sinks.push_back(std::make_shared<spdlog::sinks::stdout_sink_mt>());
        // Probably will want to switch this to ostream_sink_mt once
        // the vfs is setup fully.
        sinks.push_back(std::make_shared<spdlog::sinks::simple_file_sink_mt>("musicgame.log"));

        logger = std::make_shared<spdlog::logger>("default", std::begin(sinks), std::end(sinks));
        spdlog::register_logger(logger);

    } catch (const spdlog::spdlog_ex& err) {
        std::cout << "Logging Failed: " << err.what() << std::endl;
        SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Runtime Error", err.what(), nullptr);
        return 1;<commit_msg>Set logger level to trace.<commit_after>#include <iostream>
#include <vector>
#include <memory>
#include <iterator>
#include "game.hpp"
#include <SDL.h>
#define SPDLOG_NO_NAME
#define SPDLOG_NO_THREAD_ID // Might be useful to enable later but atm meh
#include <spdlog/spdlog.h>

// Eventually we will want to load configuration files somewhere in here.
// This also means the VFS needs to be setup here as well
int main()
{
    std::shared_ptr<spdlog::logger> logger;

    try {
        std::vector<spdlog::sink_ptr> sinks;
        // I would like to use the sink that does color output to the console
        // but it doesnt yet work for windows.
        sinks.push_back(std::make_shared<spdlog::sinks::stdout_sink_mt>());
        // Probably will want to switch this to ostream_sink_mt once
        // the vfs is setup fully.
        sinks.push_back(std::make_shared<spdlog::sinks::simple_file_sink_mt>("musicgame.log"));

        logger = std::make_shared<spdlog::logger>("default", std::begin(sinks), std::end(sinks));
        spdlog::register_logger(logger);

        // Should be set by the configuration eventually.
        logger->set_level(spdlog::level::trace);

    } catch (const spdlog::spdlog_ex& err) {
        std::cout << "Logging Failed: " << err.what() << std::endl;
        SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Runtime Error", err.what(), nullptr);
        return 1;
{'fraction_non_alphanumeric': 0.1237845923709798, 'fraction_numerical': 0.0007479431563201197, 'mean_word_length': 3.68476357267951, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 26, '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': '6383928', 'n_tokens_mistral': 862, 'n_tokens_neox': 844, 'n_words': 241}