00001 // 00002 // plumbing - C++ wrapper facades for Berkeley sockets 00003 // Copyright (C) 2009 Peter Miller 00004 // 00005 // This program is free software; you can redistribute it and/or modify it 00006 // under the terms of the GNU General Public License, version 3, as published 00007 // by the Free Software Foundation. 00008 // 00009 // This program is distributed in the hope that it will be useful, but WITHOUT 00010 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00011 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 00012 // more details. 00013 // 00014 // You should have received a copy of the GNU General Public License along with 00015 // this program. If not, see <http://www.gnu.org/licenses/>. 00016 // 00017 00018 #include <libplumbing/logging/tee.h> 00019 00020 00021 plumbing::logging_tee::~logging_tee() 00022 { 00023 } 00024 00025 00026 plumbing::logging_tee::logging_tee(logging *a1, logging *a2) : 00027 logging(), 00028 lhs(a1), 00029 rhs(a2) 00030 { 00031 } 00032 00033 00034 void 00035 plumbing::logging_tee::deliver_message_text(const char *txt) 00036 { 00037 lhs->deliver_message_text(txt); 00038 rhs->deliver_message_text(txt); 00039 } 00040 00041 00042 // vim: set ts=8 sw=4 et