/******************************************************************************* * Copyright 2019 UChicago Argonne, LLC. * (c.f. AUTHORS, LICENSE) * * This file is part of the Argo containers project. * For more info, see https://xgitlab.cels.anl.gov/argo/containers * * SPDX-License-Identifier: BSD-3-Clause *******************************************************************************/ #ifndef __FILELOGGER_HPP__ #define __FILELOGGER_HPP__ #include "ilogger.hpp" #include class Filelogger: public ILogger { std::ofstream _file; public: Filelogger(uid_t ruid, const string& filename, Log_type log_type = LOG_TYPE_ALL, bool append=true); ~Filelogger(); virtual void log(Log_type type, const string& message, int errnum = 0); virtual inline Log_dest log_destination() const {return LOG_DEST_FILE;} }; #endif