#pragma once

#include <kernel/searchlog/searchlog.h>
#include <saas/searchproxy/search_meta/extendedcontext.h>

class ISearchContext;
class TSearchRequestData;

namespace NSearchProxy {

    namespace NLogging {

        class TErrorLog: public TSearchLog {
        public:
            TErrorLog(const TString& logType, ELogPriority priority = LOG_MAX_PRIORITY, size_t queueLen = 0)
                : TSearchLog(logType, priority, queueLen)
            {

            }

            static void Log(ui32 id, const TSearchRequestData& rd, const TString& errorMessage);
        };

    }
}
