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 )
50 rtn = gettimeofday( &tp, NULL);
52 return str::form( "%ld.%ld [%d] <%d> %s(%s):%d %s",
58 file_r, func_r, line_r,
61 /////////////////////////////////////////////////////////////////
63 ///////////////////////////////////////////////////////////////////
64 /////////////////////////////////////////////////////////////////
66 ///////////////////////////////////////////////////////////////////