Extension development
logstring in startup ... no log entry?

OK, I got it ... Core config ... reporting level.

 

<p>OK, I got it ... Core config ... reporting level.</p><p> </p>

Here's a resident daemon's startup function:

SHORT DAEMONEXPORT startup (M_INTERFACE *mi, UINT_32 *flags, CHAR *name, CHAR *param)
{
    mi->logstring(10, LOG_DEBUG, "KeepAliveUI0 loaded");
    CloseHandle(CreateThread(NULL, 0, KeepAliveThread, NULL, 0, NULL));
    return 1;
}

It is being called; the thread is started and does its intended job.  But I find no log entry in "System messages".  Any ideas?

Thanks.

<p>Here's a resident daemon's startup function:</p><blockquote>SHORT DAEMONEXPORT startup (M_INTERFACE *mi, UINT_32 *flags, CHAR *name, CHAR *param) {     mi->logstring(10, LOG_DEBUG, "KeepAliveUI0 loaded");     CloseHandle(CreateThread(NULL, 0, KeepAliveThread, NULL, 0, NULL));     return 1; } </blockquote><p>It is being called; the thread is started and does its intended job.  But I find no log entry in "System messages".  Any ideas?</p><p>Thanks. </p>

[quote user="Vincent Fatica"]

Here's a resident daemon's startup function:

SHORT DAEMONEXPORT startup (M_INTERFACE *mi, UINT_32 *flags, CHAR *name, CHAR *param)
{
    mi->logstring(10, LOG_DEBUG, "KeepAliveUI0 loaded");
    CloseHandle(CreateThread(NULL, 0, KeepAliveThread, NULL, 0, NULL));
    return 1;
}

It is being called; the thread is started and does its intended job.  But I find no log entry in "System messages".  Any ideas?

Thanks.

[/quote]

If I change the priority to LOG_URGENT, the entry does appear in "System messages".

 

[quote user="Vincent Fatica"]<p>Here's a resident daemon's startup function:</p><blockquote>SHORT DAEMONEXPORT startup (M_INTERFACE *mi, UINT_32 *flags, CHAR *name, CHAR *param) {     mi->logstring(10, LOG_DEBUG, "KeepAliveUI0 loaded");     CloseHandle(CreateThread(NULL, 0, KeepAliveThread, NULL, 0, NULL));     return 1; } </blockquote><p>It is being called; the thread is started and does its intended job.  But I find no log entry in "System messages".  Any ideas?</p><p>Thanks. </p><p>[/quote]</p><p>If I change the priority to LOG_URGENT, the entry does appear in "System messages".</p><p> </p>
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft