--- freem/src/log.c 2025/03/09 19:50:47 1.4 +++ freem/src/log.c 2025/04/01 23:21:45 1.6 @@ -1,5 +1,5 @@ /* - * $Id: log.c,v 1.4 2025/03/09 19:50:47 snw Exp $ + * $Id: log.c,v 1.6 2025/04/01 23:21:45 snw Exp $ * freem error logging * * @@ -24,6 +24,12 @@ * along with FreeM. If not, see . * * $Log: log.c,v $ + * Revision 1.6 2025/04/01 23:21:45 snw + * fmadm commands for stopping, starting, and restarting environments now functional + * + * 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 +50,13 @@ 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 + + fclose (fp); }