#include "general_var.h"#include "estructuras.h"#include <errno.h>#include <string.h>#include <time.h>Definiciones | |
| #define | LOGAUTH(DATOS_CLIENTE) |
| #define | LOGNOAUTH(DATOS_CLIENTE) |
| #define | LOGCMD(CMD) |
| #define | LOGTHISMSG(msg_info) |
| #define | LOGERR() |
| #define | LOGTHISERR(MSGERR) |
|
|
Valor: tiempo = time(NULL); \ tmPtr = localtime(&tiempo); \ strftime( cad, 20,"%b %d %H:%M:%S", tmPtr ); \ fprintf(MSG,"<MSG codigo=\"1\"><TIME> %s </TIME> Autenticación correcta<IP> %s </IP></MSG> \n",cad,inet_ntoa((DATOS_CLIENTE).ip_origen)); |
|
|
Valor: tiempo = time(NULL); \ tmPtr = localtime(&tiempo); \ strftime( cad, 20,"%b %d %H:%M:%S", tmPtr ); \ fprintf(MSG,"<MSG codigo=\"3\"> <TIME> %s </TIME> Ejecutando %s....</MSG>\n",cad,CMD); |
|
|
Valor: tiempo = time(NULL); \ tmPtr = localtime(&tiempo); \ strftime( cad, 20,"%b %d %H:%M.%S", tmPtr ); \ fprintf(ERR,"<MSG codigo=\"-1\"><TIME> %s </TIME> Error: %s \n ",cad,strerror(errno)); |
|
|
Valor: tiempo = time(NULL); \ tmPtr = localtime(&tiempo); \ strftime( cad, 20,"%b %d %H:%M:%S", tmPtr ); \ fprintf(MSG,"<MSG codigo=\"2\"> <TIME> %s </TIME> Intento incorrecto <IP> %s </IP></MSG> \n",cad,inet_ntoa((DATOS_CLIENTE).ip_origen)); |
|
|
Valor: tiempo = time(NULL); \ tmPtr = localtime(&tiempo); \ strftime( cad, 20,"%b %d %H:%M.%S", tmPtr ); \ fprintf(ERR,"<MSG codigo=\"-1\"><TIME> %s </TIME> Error: %s \n ",cad,MSGERR); |
|
|
Valor: tiempo = time(NULL); \ tmPtr = localtime(&tiempo); \ strftime( cad, 20,"%b %d %H:%M.%S", tmPtr ); \ fprintf(MSG,"<TIME> %s </TIME> <MSG> %s <MSG>",cad,msg_info); |
1.3.9.1