URL: https://linuxfr.org/forums/linux-general/posts/probleme-avec-syslog Title: probleme avec syslog Authors: cosmoff Date: 2019年07月05日T14:06:11+02:00 License: CC By-SA Tags: Score: 2 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 : ```C #include int main(int argc, char const *argv[]) { int a = 1; openlog(argv[0], LOG_CONS | LOG_PID | LOG_NDELAY, LOG_USER); if( a == 1) { syslog (LOG_INFO, "A tree falls in a forest"); } closelog(); return 0; } ``` Merci d'avance

AltStyle によって変換されたページ (->オリジナル) /