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_ (std::string_view id, std::string_view file, int line)
 
- 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/3]

edm::LogDebug_::LogDebug_ ( )
default

◆ LogDebug_() [2/3]

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/3]

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

Member Function Documentation

◆ 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