--- freem/src/log.c 2025/03/09 19:50:47 1.4 +++ freem/src/log.c 2025/04/01 20:11:46 1.5 @@ -1,5 +1,5 @@ /* - * $Id: log.c,v 1.4 2025/03/09 19:50:47 snw Exp $ + * $Id: log.c,v 1.5 2025/04/01 20:11:46 snw Exp $ * freem error logging * * @@ -24,6 +24,9 @@ * along with FreeM. If not, see . * * $Log: log.c,v $ + * Revision 1.5 2025/04/01 20:11:46 snw + * Further work on fmadm + * * Revision 1.4 2025/03/09 19:50:47 snw * Second phase of REUSE compliance and header reformat * @@ -44,8 +47,14 @@ void m_log (int level, const char *msg) { + FILE *fp; + fp = fopen ("/tmp/freem.log", "w+"); + #if defined(__linux__) | defined(__FreeBSD__) | defined(__sun__) - syslog (level, "%s", msg); + syslog (level, "%s", msg); #endif + fprintf (fp, "%s\n", msg); + + fclose (fp); }