/************************************************************************************* Grid physics library, www.github.com/paboyle/Grid Source file: ./lib/Log.cc Copyright (C) 2015 Author: Antonin Portelli Author: Azusa Yamaguchi Author: Peter Boyle Author: paboyle This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. See the full license in the file "LICENSE" in the top level distribution directory *************************************************************************************/ /* END LEGAL */ #include namespace Grid { GridStopWatch Logger::StopWatch; std::ostream Logger::devnull(0); GridLogger GridLogError (1,"Error"); GridLogger GridLogWarning (1,"Warning"); GridLogger GridLogMessage (1,"Message"); GridLogger GridLogDebug (1,"Debug"); GridLogger GridLogPerformance(1,"Performance"); GridLogger GridLogIterative (1,"Iterative"); GridLogger GridLogIntegrator (1,"Integrator"); void GridLogConfigure(std::vector &logstreams) { GridLogError.Active(0); GridLogWarning.Active(0); GridLogMessage.Active(0); GridLogIterative.Active(0); GridLogDebug.Active(0); GridLogPerformance.Active(0); GridLogIntegrator.Active(0); for(int i=0;i