#pragma once

#include "file_manager.h"

#include <util/generic/string.h>
#include <util/stream/output.h>

namespace NH2Log {

    class TSimpleLogGuard {
        TString FuncName;
    public:
        TSimpleLogGuard(TString funcName, const TFileManager& fileManager);

        ~TSimpleLogGuard();
    };

#define Y_H2_LOG_FUNC(fileManager) TSimpleLogGuard Y_CAT(guard, __LINE__)(__func__, fileManager)
#define Y_H2_LOG_EVENT Cerr << "  (" << __func__ << ") "
}
