Description
A function equivalent of the cflog tag, which can be used in <cfscript>.
Parameters
Same as the <cflog> tag:
Attribute |
Req/Opt |
Default |
Description |
---|---|---|---|
text |
Required |
|
Message text to log. |
application |
Optional |
yes |
|
file |
Optional |
|
Message file. Specify only the main part of the filename. For example, to log to the Testing.log file, specify "Testing". The file must be located in the default log directory. You cannot specify a directory path. If the file does not exist, it is created automatically, with the extension .log. |
log |
Optional |
|
If you omit the file attribute, writes messages to standard log file. Ignored, if you specify file attribute.
|
type |
Optional |
Information |
Type (severity) of the message:
|