MACSio  0.9
Multi-purpose, Application-Centric, Scalable I/O Proxy App
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
macsio_log.c File Reference
#include <fcntl.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <macsio_log.h>

Go to the source code of this file.

Data Structures

struct  _log_flags_t
struct  _MACSIO_LOG_LogHandle_t


typedef struct _log_flags_t log_flags_t
typedef struct


char const * MACSIO_LOG_MakeMsg (char const *format,...)
 Internal convenience method to build a message from a printf-style format string and args. More...
MACSIO_LOG_LogHandle_tMACSIO_LOG_LogInit (MPI_Comm comm, char const *path, int line_len, int lines_per_proc, int extra_lines_proc0)
 Initialize a log. More...
void MACSIO_LOG_LogMsg (MACSIO_LOG_LogHandle_t const *log, char const *fmt,...)
 Issue a printf-style message to a log. More...
void MACSIO_LOG_LogMsgWithDetails (MACSIO_LOG_LogHandle_t const *log, char const *linemsg, MACSIO_LOG_MsgSeverity_t sevVal, char const *sevStr, int sysErrno, int mpiErrno, char const *theFile, int theLine)
 Convenience method for building a detailed message for a log. More...
void MACSIO_LOG_LogFinalize (MACSIO_LOG_LogHandle_t *log)
 Finalize and close an open log Should be called collectively by all processors that created the log. More...


int mpi_errno = MPI_SUCCESS
 Error code returned by most recent MPI call. More...
int MACSIO_LOG_DebugLevel = 0
MACSIO_LOG_LogHandle_tMACSIO_LOG_MainLog = 0
 Log handle for MACSIO's main log. More...
 Log handle for MACSIO's stderr output. More...