Whatever message this page gives is out now! Go check it out!

info

Last update:
May 18, 2026

Description

Writes a log entry with an information severity to the ColdFusion logger. The entry includes the severity, thread ID, date, time, and a text message.

Category

Event Gateway Development

Syntax

info(String message) info(Throwable th) info(String message, Throwable th)

See also

debug error fatal warn getLoggerLogging events and using log files in  Building an event gateway  in the Developing ColdFusion Applications

Parameters

ParameterDescription
message
The message to include in the log entry.
th
A throwable object, normally an exception. ColdFusion logs the exception information in the exception.log file in the ColdFusion logs directory. Not normally used with this method.

Usage

Use this method to send an informational message to the ColdFusion logging subsystem. ColdFusion writes messages with a severity of "information" to the log file specified in the getLogger method that returned the Logger instance (or the default log file).ColdFusion normally logs all information severity messages. So do not use this severity for debugging messages or for events that happen frequently.

Example

The ColdFusion example DirectoryWatcherGateway class includes the following line at the top of its loadconfig method that loads the gateway's configuration file. It writes a message including the gateway ID and configuration file.
logger.info("DirectoryWatcher (" + gatewayID + ") Initializing DirectoryWatcher gateway with configuration file " + config);

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page