PLSSVM - Parallel Least Squares Support Vector Machine  2.0.0
A Least Squares Support Vector Machine implementation using different backends.
Namespaces | Enumerations | Functions | Variables
logger.hpp File Reference

Defines a simple logging function. More...

#include "plssvm/detail/performance_tracker.hpp"
#include "fmt/chrono.h"
#include "fmt/format.h"
#include "fmt/ostream.h"
#include <iosfwd>
#include <iostream>
#include <string_view>
#include <utility>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 plssvm
 The main namespace containing all public API functions.
 
 plssvm::detail
 Namespace containing implementation details. Should not directly be used by users.
 

Enumerations

enum class  plssvm::verbosity_level { plssvm::quiet = 0b000 , plssvm::libsvm = 0b001 , plssvm::timing = 0b010 , plssvm::full = 0b100 }
 Enum class for all possible verbosity levels. More...
 

Functions

std::ostream & plssvm::operator<< (std::ostream &out, verbosity_level verb)
 Output the verb to the given output-stream out. More...
 
std::istream & plssvm::operator>> (std::istream &in, verbosity_level &verb)
 Use the input-stream in to initialize the verb level. More...
 
verbosity_level plssvm::operator| (verbosity_level lhs, verbosity_level rhs)
 Bitwise-or to set multiple verbosity levels at once for a logging message. More...
 
verbosity_level plssvm::operator|= (verbosity_level &lhs, verbosity_level rhs)
 Bitwise-or to set multiple verbosity levels at once for a logging message. More...
 
verbosity_level plssvm::operator& (verbosity_level lhs, verbosity_level rhs)
 Bitwise-and to check verbosity levels for a logging message. More...
 
verbosity_level plssvm::operator&= (verbosity_level &lhs, verbosity_level rhs)
 Bitwise-and to check verbosity levels for a logging message. More...
 
template<typename... Args>
void plssvm::detail::log (const verbosity_level verb, const std::string_view msg, Args &&...args)
 

Variables

verbosity_level plssvm::verbosity
 The verbosity level used in the logging function. My be changed by the user.
 

Detailed Description

Defines a simple logging function.

Author
Alexander Van Craen
Marcel Breyer
License

This file is part of the PLSSVM project which is released under the MIT license. See the LICENSE.md file in the project root for full license information.

Also used for the plssvm::detail::performance_tracker.