version 1.4, 2025/03/09 19:50:47
|
version 1.6, 2025/04/01 23:21:45
|
Line 24
|
Line 24
|
* along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
* along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
* |
* |
* $Log$ |
* $Log$ |
|
* 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 |
* Revision 1.4 2025/03/09 19:50:47 snw |
* Second phase of REUSE compliance and header reformat |
* Second phase of REUSE compliance and header reformat |
* |
* |
Line 44
|
Line 50
|
void m_log (int level, const char *msg) |
void m_log (int level, const char *msg) |
{ |
{ |
|
|
|
FILE *fp; |
|
fp = fopen ("/tmp/freem.log", "w+"); |
|
|
#if defined(__linux__) | defined(__FreeBSD__) | defined(__sun__) |
#if defined(__linux__) | defined(__FreeBSD__) | defined(__sun__) |
syslog (level, "%s", msg); |
syslog (level, "%s", msg); |
#endif |
#endif |
|
|
|
fclose (fp); |
|
|
} |
} |