Cleaned MD use of logs.
This commit is contained in:
1 parent
36cee53c41
commit
b9a6c078aa
5 files changed
+19
-14
No files matched your search
@@ -96,19 +96,11 @@ std::ifstream::pos_type filesize(std::string const&filename)
|
||||
}
|
||||
}
|
||||
|
||||
boost::filesystem::path log_path ()
|
||||
{
|
||||
auto store_root = os::bts_data_path();
|
||||
std::string base_path = store_root;
|
||||
boost::filesystem::path result = utils::normalize_data_path (base_path);
|
||||
result /= "logging";
|
||||
result /= "log";
|
||||
return result;
|
||||
}
|
||||
|
||||
Sink file_sink() {
|
||||
auto f= formatter();
|
||||
auto path = log_path();
|
||||
auto path = log_path();
|
||||
path /= "log";
|
||||
|
||||
auto parent = path.parent_path();
|
||||
|
||||
if (!boost::filesystem::is_directory(parent))
|
||||
|
||||
Reference in new issue
Block a user