/*
 * $Header: /home/gene/library/website/docsrc/wel/src/RCS/log.h,v 395.1 2008/04/20 17:25:48 gene Exp $
 *
 * Copyright (c) 2005 Gene Michael Stover.  All rights reserved.
 *
 * 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 St, Fifth Floor, Boston, MA  02110-1301
 * USA
 */

/*
 * Save events which happen within this suite of programs.
 */

/*
 * Call this before you call any other LOG functions.
 * Returns 0 on success.
 * 
 */
int LOG_Startup ();

/*
 * Print a generic message about the most recent Windows
 * error.  This is equivalent to
 * "LOG_Error (GetLastError(), __FILE__, __LINE__)".
 */
void LOG_LastError (char fn[], char file[], int line);

/*
 * Print a generic message about the indicated Windows
 * error.
 */
void LOG_Error (DWORD error, char fn[], char file[], int line);

/*
 * Call this at the end of the program, when there is little
 * (or no) chance you'll need to call any other LOG functions
 * again during the program.
 */
void LOG_Shutdown ();

/* --- end of file --- */

