Imported Upstream version 17.14.0
[platform/upstream/libzypp.git] / zypp / base / ProfilingFormater.h
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9 /** \file       zypp/base/ProfilingFormater.h
10  *
11 */
12 #ifndef ZYPP_BASE_PROFILINGFORMATER_H
13 #define ZYPP_BASE_PROFILINGFORMATER_H
14
15 #include <iosfwd>
16 #include <string>
17 #include "zypp/base/LogControl.h"
18
19 ///////////////////////////////////////////////////////////////////
20 namespace zypp
21 { /////////////////////////////////////////////////////////////////
22   ///////////////////////////////////////////////////////////////////
23   namespace base
24   { /////////////////////////////////////////////////////////////////
25
26     struct ProfilingFormater : public LogControl::LineFormater
27     {
28       virtual 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*/ );
34       virtual ~ProfilingFormater() {}
35     };
36
37
38     /////////////////////////////////////////////////////////////////
39   } // namespace base
40   ///////////////////////////////////////////////////////////////////
41   /////////////////////////////////////////////////////////////////
42 } // namespace zypp
43 ///////////////////////////////////////////////////////////////////
44 #endif // ZYPP_BASE_PROFILINGFORMATER_H