blob: c6e2af245b479edf0501832a313eb4dda77c8b65 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
/*
* =====================================================================================
*
* 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 <stdlib.h>
#include <time.h>
/* ##### 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 ----- */
|