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

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

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

◆ 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_ &&  )
default

◆ operator=() [2/2]

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

◆ stripLeadingDirectoryTree()

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

Definition at line 59 of file MessageLogger.cc.

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  }

References FrontierConditions_GlobalTag_cff::file.

Referenced by LogDebug_().

trigger::size_type
uint16_t size_type
Definition: TriggerTypeDefs.h:18
FrontierConditions_GlobalTag_cff.file
file
Definition: FrontierConditions_GlobalTag_cff.py:13
mps_splice.line
line
Definition: mps_splice.py:76
edm::LogDebug_::stripLeadingDirectoryTree
std::string_view stripLeadingDirectoryTree(std::string_view file) const
Definition: MessageLogger.cc:59