cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
ologger Class Reference

#include <ologger.hpp>

Collaboration diagram for ologger:
[legend]

Classes

class  Debug
 
class  Error
 
class  Info
 

Public Types

enum class  log_level { LOG_NONE , LOG_ERROR , LOG_INFO , LOG_DEBUG }
 
using endl_type = std::ostream &(std::ostream &)
 

Public Member Functions

 ologger (const std::string &path, const std::string &file_prefix, const std::string &file_suffix, size_t max_file_size, size_t max_files, log_level level=log_level::LOG_NONE)
 
 ologger (const ologger &)=delete
 
 ologger (ologger &&)=delete
 
ologgeroperator= (const ologger &)=delete
 
ologgeroperator= (ologger &&)=delete
 

Public Attributes

Debug debug
 
Info info
 
Error error
 

Detailed Description

Copyright 2016 – 2022 IBM Corporation

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition at line 48 of file ologger.hpp.

Member Typedef Documentation

◆ endl_type

using ologger::endl_type = std::ostream& (std::ostream&)

Definition at line 50 of file ologger.hpp.

Member Enumeration Documentation

◆ log_level

enum ologger::log_level
strong
Enumerator
LOG_NONE 
LOG_ERROR 
LOG_INFO 
LOG_DEBUG 

Definition at line 52 of file ologger.hpp.

52  {
53  LOG_NONE,
54  LOG_ERROR,
55  LOG_INFO,
56  LOG_DEBUG
57  };

Constructor & Destructor Documentation

◆ ologger() [1/3]

ologger::ologger ( const std::string &  path,
const std::string &  file_prefix,
const std::string &  file_suffix,
size_t  max_file_size,
size_t  max_files,
log_level  level = log_level::LOG_NONE 
)

Definition at line 78 of file ologger.cpp.

84  :
85  path_(make_path(path)),
86  file_prefix_(file_prefix),
87  file_suffix_(file_suffix),
88  max_file_size_(max_file_size),
89  max_files_(max_files),
90  level_(level),
91  debug(*this), info(*this), error(*this) {
92 
93  make_logger(path_, file_prefix_, file_suffix);
94 }
Debug debug
Definition: ologger.hpp:166
Error error
Definition: ologger.hpp:168
Info info
Definition: ologger.hpp:167

◆ ologger() [2/3]

ologger::ologger ( const ologger )
delete

◆ ologger() [3/3]

ologger::ologger ( ologger &&  )
delete

Member Function Documentation

◆ operator=() [1/2]

ologger& ologger::operator= ( const ologger )
delete

◆ operator=() [2/2]

ologger& ologger::operator= ( ologger &&  )
delete

Member Data Documentation

◆ debug

Debug ologger::debug

Definition at line 166 of file ologger.hpp.

◆ error

Error ologger::error

Definition at line 168 of file ologger.hpp.

◆ info

Info ologger::info

Definition at line 167 of file ologger.hpp.


The documentation for this class was generated from the following files: