CMS 3D CMS Logo

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

◆ LogDebug_() [1/5]

edm::LogDebug_::LogDebug_ ( )
default

◆ LogDebug_() [2/5]

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

Definition at line 55 of file MessageLogger.cc.

References geometryDiff::file, mps_splice::line, and stripLeadingDirectoryTree().

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

◆ LogDebug_() [3/5]

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) {}

◆ LogDebug_() [4/5]

edm::LogDebug_::LogDebug_ ( LogDebug_ const &  )
delete

◆ LogDebug_() [5/5]

edm::LogDebug_::LogDebug_ ( LogDebug_ &&  )
default

Member Function Documentation

◆ operator=() [1/2]

LogDebug_& edm::LogDebug_::operator= ( LogDebug_ const &  )
delete

◆ operator=() [2/2]

LogDebug_& edm::LogDebug_::operator= ( LogDebug_ &&  )
default

◆ stripLeadingDirectoryTree()

std::string_view edm::LogDebug_::stripLeadingDirectoryTree ( std::string_view  file) const
private

Definition at line 59 of file MessageLogger.cc.

References geometryDiff::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