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