OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
ias_logging.c File Reference
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "ias_logging.h"
#include "ias_const.h"
Include dependency graph for ias_logging.c:

Go to the source code of this file.

Macros

#define LOGGING_C
 
#define CHANNELS_LENGTH   500
 

Functions

int ias_log_initialize (const char *log_program_name)
 
IAS_LOG_MESSAGE_LEVEL ias_log_set_output_level (int new_level)
 
int ias_log_set_output_target (FILE *new_fp)
 
void ias_log_message (int log_level, const char *filename, int line_number, const char *format,...)
 
void ias_log_message_with_channel (int log_level, const char *channel, const char *filename, int line_number, const char *format,...)
 

Variables

enum IAS_LOG_MESSAGE_LEVEL ias_log_message_level
 

Macro Definition Documentation

◆ CHANNELS_LENGTH

#define CHANNELS_LENGTH   500

Definition at line 19 of file ias_logging.c.

◆ LOGGING_C

#define LOGGING_C

Definition at line 15 of file ias_logging.c.

Function Documentation

◆ ias_log_initialize()

int ias_log_initialize ( const char *  log_program_name)

Definition at line 55 of file ias_logging.c.

◆ ias_log_message()

void ias_log_message ( int  log_level,
const char *  filename,
int  line_number,
const char *  format,
  ... 
)

Definition at line 330 of file ias_logging.c.

◆ ias_log_message_with_channel()

void ias_log_message_with_channel ( int  log_level,
const char *  channel,
const char *  filename,
int  line_number,
const char *  format,
  ... 
)

Definition at line 357 of file ias_logging.c.

◆ ias_log_set_output_level()

IAS_LOG_MESSAGE_LEVEL ias_log_set_output_level ( int  new_level)

Definition at line 144 of file ias_logging.c.

◆ ias_log_set_output_target()

int ias_log_set_output_target ( FILE *  new_fp)

Definition at line 167 of file ias_logging.c.

Variable Documentation

◆ ias_log_message_level

enum IAS_LOG_MESSAGE_LEVEL ias_log_message_level

Definition at line 22 of file ias_logging.c.