/* * ===================================================================================== * * Filename: log.c * * Description: Implementations for logging framework * * Version: 1.0 * Created: 10/27/2022 10:02:48 AM * Revision: none * Compiler: gcc * * Author: Cara Salter (cara@devcara.com) * Organization: * * ===================================================================================== */ /* ##### HEADER FILE INCLUDES ################################################### */ #include #include /* ##### FUNCTION DEFINITIONS - LOCAL TO THIS SOURCE FILE ##################### */ /* * === FUNCTION ====================================================================== * Name: debug * Description: Outputs debugging information to stdout * ===================================================================================== */ int debug(char msg[]) { /* :TODO:10/27/2022 11:48:32 AM:: Fix time get */ time_t cur_time = time(NULL); struct tm t = *localtime(&t); printf("now: %d-%02d-%02d %02d:%02d:%02d\n", t.tm_year + 1900, t.tm_mon + 1, t.tm_mday, t.tm_hour, t.tm_min, t.tm_sec); return 0; } /* * === FUNCTION ====================================================================== * Name: info * Description: Outputs informational messages to stdout * ===================================================================================== */ int info(char msg[]) { return 0; } /* ----- end of function info ----- */