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