aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger/record.h
blob: c28a7785fd929bed6796b3d550c86e0945dd3c17 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include "priority.h"

#include <util/system/defaults.h>

struct TLogRecord {
    const char* Data;
    size_t Len;
    ELogPriority Priority;

    inline TLogRecord(ELogPriority priority, const char* data, size_t len) noexcept
        : Data(data)
        , Len(len)
        , Priority(priority)
    {
    }
};