Home > Contents > Index >
ics:logmsg
Write strings to a Sites log file for debugging or system monitoring.
Syntax
<ics:logmsg msg="text" [name="variable name"] [severity="severity value"]/>Parameters
msg (required)
- Message to be written
name (optional)
- Optionally specify the logger which will be used to log this message. Default is
com.fatwire.logging.cs
severity (optional)
- String value which specifies the severity of the log message. Valid strings are as follows:
- trace
- debug
- info (if severity is not specified or invalid, info is the default severity)
- warn
- error
- fatal
Note: Visibilty of log message depends on the setting in commons-logging.properties for the specified logger.
Description
Use this tag if you want to perform debugging or system monitoring. The log strings are written to your Sites log file.
Error Numbers
There are no possible
errno
for this tag.Example
The following example writes a warning message to the log file.
<ics:logmsg msg="This is a warning message" name="com.fatwire.logging.cs.jsp" severity="warn"/>
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.