/* $Id: pdi_logger.h,v 1.1.1.1 2005/01/10 18:47:02 pdi Exp $ */
/******************************************************************************/
/* Copyright 1998-2022 Stonie R. Cooper, Licensed under the auspices of GPLv3,
 See top-level copyright disclaimer (COPYRIGHT) and license (LICENSE)
                    Marietta, Georgia.                                      */
/* File:            pdi_logger.h                                              */
/* Author:          Stonie R. Cooper, Senior Science Officer, PDI             */
/* Documentation:   NA                                                        */
/* Revision Record: (as follows)                                              */
/*         Rewritten: 20050114 by Stonie R. Cooper
                  Established initial file for pdi_logger.h                 */
/* Dependencies:                                                              */
/******************************************************************************/

/* PDINRS_LOGGER_H BEGIN                                                      */

#ifndef PDI_LOGGER_H
#define PDI_LOGGER_H

/* INCLUDE BEGIN                                                              */

#include <pdi.h>

/* INCLUDE END                                                                */

typedef struct
{
  char                             log_path[256];
  unsigned int                max_size;
  FILE                             *log_file_ptr;
} log_type;

/* DEFINITION BEGIN
   logger:
    - log_type: structure, as defined in pdi.h
    - char *: string to be printed with time stamp in log/error file.
    return: void */

void logger(log_type log_struct, char *message);

#endif
