aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger/record.h
blob: dd9d0d03a1413459f0c9da040de8b5898bbb5efd (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)
    {
    }
};