4D v14.3LOG EVENT |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
LOG EVENT
LOG EVENT
The LOG EVENT command sets up a customized system for recording internal events that occur during the use of your application. Pass the custom information to be noted according to the event in message. The optional outputType parameter specifies the output channel taken by the message. You can pass one of the following constants, located in the "Log Events" theme, in this parameter:
If you do not pass the outputType parameter, the value 0 (Into Windows Log Events) is used by default. If you have defined the outputType parameter as Into Windows Log Events, you can attribute a level of importance to message, via the optional importance parameter which helps you to read and understand the log events. There are three levels of importance: Information, Warning, and Error.
If you don’t pass anything in importance or pass an incorrect value, the default value (0) is used. If you want to have keep track of when your database is opened under Windows, you could write the following line of code in the On Startup database method: LOG EVENT(Into Windows log events;"The Invoice database was opened.") Each time the database is opened, this information will be written in Windows’ log events and its level of importance will be 0. |
PROPERTIES
Product: 4D
HISTORY
Modified: 4D v11 SQL Release 2 SEE ALSO ARTICLE USAGE
4D Language Reference ( 4D v14 R3) Inherited from : LOG EVENT ( 4D v11 SQL Release 6) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||