Meta: Add files to repository

This commit is contained in:
Alec Murphy 2025-02-16 15:21:19 -05:00
parent 6d27d43268
commit 52cb92f587
120 changed files with 71820 additions and 0 deletions

22
Slon/Modules/Log.HC Normal file
View file

@ -0,0 +1,22 @@
#define LOG_DB 100
#define LOG_HTTPD 101
U0 @slon_log(I64 module, U8* fmt, ...)
{
CDateStruct ds;
Date2Struct(&ds, Now);
AdamLog("[%02d:%02d]", ds.hour, ds.min);
switch (module) {
case LOG_DB:
AdamLog("[ slon/db] ");
break;
case LOG_HTTPD:
AdamLog("[slon/httpd] ");
break;
default:
AdamLog("[ slon/misc] ");
break;
}
AdamLog(fmt, argc, argv);
AdamLog("\n");
}