xref: /openbmc/openpower-hw-diags/util/log.hpp (revision 20ed74db)
1 #pragma once
2 
3 // C++20 projects should use `lg2` over `log`, when possible. See the following
4 // for details on structured logging:
5 //   https://github.com/openbmc/phosphor-logging/blob/master/docs/structured-logging.md
6 
7 #include <phosphor-logging/lg2.hpp>
8 
9 // This allows for easier use of string literals (i.e. `"foo"s`). See the
10 // following for details:
11 //   https://en.cppreference.com/w/cpp/string/basic_string/operator%22%22s
12 
13 #include <string>
14 using namespace std::string_literals;
15