xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

HB_SysLogMessage()

Adds a new entry to the log file of the operating system.

Syntax

HB_SysLogMessage( <cMessage> , ;
                  <nPriority>, ;
                  <nSysID>     ) --> lSuccess

Arguments

<cMessage>
This is a character string holding the message to add to the new entry of the system log file.
<nPriority>
#define constants are available in the file HbLogDef.ch that can be used for the priority of log messages.

Log channel priorities
ConstantValueDescription
HB_LOG_CRITICAL1Critical log messages
HB_LOG_ERROR2Error log messages
HB_LOG_WARNING3Warning messages
HB_LOG_INFO4Informational messages
HB_LOG_DEBUG5Debug messages

<nSysID>
A numeric value specifying the numeric ID of the log nessage.

Return

The function returns .T. (true) when the log message is successfully added to the log file of the operating system, otherwise .F. (false) is returned.

Info

See also:LOG, HB_SysLogClose(), HB_SysLogOpen()
Category: Log functions , xHarbour extensions
Header:hblog.ch
Source:rtl\hbSysLog.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe