/*
_____       _    _    Corso   Italia,  178
(_|__   .  (_   |_|_  56125           Pisa
(_|_) |)|(()_)()| |   tel.  +39  050 46380
  |   |               picosoft@picosoft.it

 picoiiop - network support for picoSQL

 Copyright (C) Picosoft s.r.l. 1994-2002

 This library is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public
 License as published by the Free Software Foundation; either
 version 2.1 of the License, or (at your option) any later version.

 This library 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
 Lesser General Public License for more details.

 You should have received a copy of the GNU Lesser General Public
 License along with this library; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/
# ifndef log_h
# define log_h "$Id: log.h,v 1.1 1999/06/03 11:42:53 picoSoft Exp $"

# include "corba.h"
/* don't include <sys/types.h> in 16-bit Windows because its definition of */
/* fd_set conflicts with the one in <winsock.h> */

extern int logFile;
void _pI__setLogFile (const char * fileName);
void _pI__printLoc (const char * file, int line);
void _pI__printLog (const char * p, ...);

# define SetLogFile(f) _pI__setLogFile (f);
# define Log if(logFile>=0)_pI__printLoc(__FILE__,__LINE__),_pI__printLog
# define isLog (logFile>=0)

# endif

