bonjour à tous,
voila j'essaye d'utiliser l'api syslog mais ca n'écrit pas mon texte "a = 1" dans un fichier.log
j'ai regardé dans mon répertoire courant et aussi dans /var/log mais il n'y a aucun fichier.
Avez vous une idée du probleme ?
voici mon code :
#include <syslog.h>
int main(int argc, char const *argv[])
{
int a = 1;
openlog(argv[0], LOG_CONS | LOG_PID | LOG_NDELAY, LOG_USER);
(…)