libzypp 17.37.10

ProfilingFormater.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#ifndef ZYPP_BASE_PROFILINGFORMATER_H
13#define ZYPP_BASE_PROFILINGFORMATER_H
14
15#include <iosfwd>
16#include <string>
17#include <zypp-core/base/LogControl.h>
18
20 namespace zypp
21{
23 namespace base
24 {
25
26 struct ProfilingFormater : public LogControl::LineFormater
27 {
28 std::string format( const std::string & /*group_r*/,
29 logger::LogLevel /*level_r*/,
30 const char * /*file_r*/,
31 const char * /*func_r*/,
32 int /*line_r*/,
33 const std::string & /*message_r*/ ) override;
34 ~ProfilingFormater() override {}
35 };
36
37
39 } // namespace base
42} // namespace zypp
44#endif // ZYPP_BASE_PROFILINGFORMATER_H
zypp::base::logger::LogLevel
LogLevel
Definition of log levels.
Definition Logger.h:156
zypp::base
Definition Random.cc:7
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition Application.cc:20
zypp::base::LogControl::LineFormater
If you want to format loglines by yourself, derive from this, and overload format.
Definition LogControl.h:115
zypp::base::ProfilingFormater
Definition ProfilingFormater.h:27
zypp::base::ProfilingFormater::~ProfilingFormater
~ProfilingFormater() override
Definition ProfilingFormater.h:34
zypp::base::ProfilingFormater::format
std::string format(const std::string &, logger::LogLevel, const char *, const char *, int, const std::string &) override
Definition ProfilingFormater.cc:36
LogControl.h