aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/eventlog/eventlog_int.cpp
blob: faa8c42cbeb87ef35f003ac8ae35c0240e90b67c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include "eventlog_int.h"

#include <util/string/cast.h>

TMaybe<TEventLogFormat> ParseEventLogFormat(TStringBuf str) {
    EEventLogFormat format;
    if (TryFromString(str, format)) {
        return static_cast<TEventLogFormat>(format);
    } else {
        return {};
    }
}