WriteLog()
This function is used to write to the logging system of OpenBD. If no "LOG" or "FILE" attribute is specified, then the log is written to the standard OpenBD application log file
Usage
BOOLEAN = WriteLog(
text,
type,
application,
file,
log,
thread
)
Argument | Summary |
---|---|
text | Specifies the text that should be logged. |
type | Specifies a category for your log (e.g. Information, Warning, Error etc). [optional] |
application | If set to YES, the web application name will be stored with the output of this log entry. [optional] |
file | Specifies a file name that this log will be written to. This attribute cannot be applied with the "LOG" attribute. [optional] |
log | Specifies a standard openbd log file to write this log to. Possible options include "scheduler", "trace" or "application". This attribute cannot be applied with the "FILE" attribute. [optional] |
thread | Setting this attribute to YES will gather the thread reference this log was called within and output it with the log. This is useful to find out which thread has generated a log if being used in a threaded environment. [optional] |
Calling
Supports named-parameter calling allowing you to use the function like:
WriteLog( text=?, type=?, application=?, file=?, log=?, thread=? );
Supports passing parameters as a structure using ArgumentCollection:
WriteLog( ArgumentCollection={ text : ?, type : ?, application : ?, file : ?, log : ?, thread : ? } );
See Also
Applicationcount
Applicationlist
Applicationremove
CreateObject
CreateUuid
Cronenable
Cronsetdirectory
Dataload
Datasave
DeleteClientvariable
Duplicate
GetApplicationmetadata
GetBasetaglist
GetBasetemplatepath
GetClientvariableslist
GetContextroot
GetCurrenttemplatepath
GetHashcode
GetJournaldirectory
GetLocalhostip
GetMailspooldirectory
GetMailundelivereddirectory
GetTagstack
GetTemplatepath
GetVariable
HtmlBody
HtmlHead
Httpdump
Invoke
JmxGetdomainlist
Journalread
Journalreadsession
Journalreadtodatasource
Logger
Pause
Renderinclude
Sessioncount
SetCookie
SetHttpstatus
SetHttpvalue
SetVariable
SystemFilecacheflush
SystemFilecacheinfo
SystemFilecachelist
SystemMemory
Throw
Throwobject
WriteDump
WriteLog
WriteOutput