|
|
@@ -40,15 +40,13 @@ namespace logging {
|
|
|
|
|
|
template <typename... Args>
|
|
|
inline void log(level ll, std::string const & interp, Args && ...args) {
|
|
|
- log( ll, location_info{}, interp, std::forward<Args>(args)... );
|
|
|
+ log(ll, location_info{}, interp, std::forward<Args>(args)...);
|
|
|
}
|
|
|
|
|
|
template <typename... Args>
|
|
|
inline void log(level ll, location_info info,
|
|
|
std::string const & interp, Args && ...args) {
|
|
|
- if ( should_log( ll ) ) {
|
|
|
- log( ll, info, message( interp, std::forward<Args>(args)... ) );
|
|
|
- }
|
|
|
+ log(ll, info, message(interp, std::forward<Args>(args)...));
|
|
|
}
|
|
|
|
|
|
void flush();
|
|
|
@@ -58,8 +56,7 @@ namespace logging {
|
|
|
|
|
|
private:
|
|
|
friend class manager;
|
|
|
- bool should_log( level ) const;
|
|
|
- void log( level ll, location_info info, message const& );
|
|
|
+ void log(level ll, location_info info, message const&);
|
|
|
|
|
|
private:
|
|
|
std::string const logger_name_;
|