CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions
edm::LogDebug_ Class Reference

#include <MessageLogger.h>

Inheritance diagram for edm::LogDebug_:
edm::Log< level::Debug, false >

Public Member Functions

 LogDebug_ ()=default
 
 LogDebug_ (std::string_view id, std::string_view file, int line)
 
 LogDebug_ (Log< level::Debug, false > const &iOther)
 
 LogDebug_ (LogDebug_ const &)=delete
 
 LogDebug_ (LogDebug_ &&)=default
 
LogDebug_operator= (LogDebug_ const &)=delete
 
LogDebug_operator= (LogDebug_ &&)=default
 
- Public Member Functions inherited from edm::Log< level::Debug, false >
ThisLogformat (std::string_view fmt, Args const &...args)
 
 Log (std::string_view id)
 
 Log (ThisLog &&)=default
 
 Log (ThisLog const &)=delete
 
ThisLoglog (F &&iF)
 
ThisLogoperator<< (T const &t)
 
ThisLogoperator<< (std::ostream &(*f)(std::ostream &))
 
ThisLogoperator<< (std::ios_base &(*f)(std::ios_base &))
 
Logoperator= (ThisLog const &)=delete
 
Logoperator= (ThisLog &&)=default
 
 ~Log ()=default
 

Private Member Functions

std::string_view stripLeadingDirectoryTree (std::string_view file) const
 

Additional Inherited Members

- Public Types inherited from edm::Log< level::Debug, false >
using ThisLog = Log< level::Debug, VERBATIM >
 
- Protected Member Functions inherited from edm::Log< level::Debug, false >
 Log ()=default
 
 Log (std::nullptr_t, ThisLog const &iOther)
 

Detailed Description

Definition at line 138 of file MessageLogger.h.

Constructor & Destructor Documentation

edm::LogDebug_::LogDebug_ ( )
default
edm::LogDebug_::LogDebug_ ( std::string_view  id,
std::string_view  file,
int  line 
)
explicit

Definition at line 55 of file MessageLogger.cc.

References stripLeadingDirectoryTree().

55  : Log<level::Debug, false>(id) {
56  *this << " " << stripLeadingDirectoryTree(file) << ":" << line << "\n";
57  }
uint16_t *__restrict__ id
std::string_view stripLeadingDirectoryTree(std::string_view file) const
edm::LogDebug_::LogDebug_ ( Log< level::Debug, false > const &  iOther)
inline

Definition at line 143 of file MessageLogger.h.

143 : Log<level::Debug, false>(nullptr, iOther) {}
edm::LogDebug_::LogDebug_ ( LogDebug_ const &  )
delete
edm::LogDebug_::LogDebug_ ( LogDebug_ &&  )
default

Member Function Documentation

LogDebug_& edm::LogDebug_::operator= ( LogDebug_ const &  )
delete
LogDebug_& edm::LogDebug_::operator= ( LogDebug_ &&  )
default
std::string_view edm::LogDebug_::stripLeadingDirectoryTree ( std::string_view  file) const
private

Definition at line 59 of file MessageLogger.cc.

References mergeVDriftHistosByStation::file.

Referenced by LogDebug_().

59  {
60  std::string_view::size_type lastSlash = file.find_last_of('/');
61  if (lastSlash == std::string_view::npos)
62  return file;
63  if (lastSlash == file.size() - 1)
64  return file;
65  return file.substr(lastSlash + 1, file.size() - lastSlash - 1);
66  }
uint16_t size_type