1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/base/ProfilingFormater.cc
19 #include "zypp/base/Logger.h"
20 #include "zypp/base/LogControl.h"
21 #include "zypp/base/String.h"
22 #include "zypp/Date.h"
23 #include "zypp/PathInfo.h"
26 #include "zypp/base/ProfilingFormater.h"
30 ///////////////////////////////////////////////////////////////////
32 { /////////////////////////////////////////////////////////////////
33 ///////////////////////////////////////////////////////////////////
35 { /////////////////////////////////////////////////////////////////
37 ///////////////////////////////////////////////////////////////////
39 ///////////////////////////////////////////////////////////////////
41 std::string ProfilingFormater::format( const std::string & group_r,
42 logger::LogLevel level_r,
46 const std::string & message_r )
49 gettimeofday( &tp, NULL);
51 return str::form( "%ld.%ld [%d] <%d> %s(%s):%d %s",
57 file_r, func_r, line_r,
60 /////////////////////////////////////////////////////////////////
62 ///////////////////////////////////////////////////////////////////
63 /////////////////////////////////////////////////////////////////
65 ///////////////////////////////////////////////////////////////////