railo.runtime.tag
Class Log

java.lang.Object
  extended by railo.runtime.ext.tag.TagImpl
      extended by railo.runtime.tag.Log
All Implemented Interfaces:
javax.servlet.jsp.tagext.Tag

public final class Log
extends TagImpl

Writes a message to a log file.


Field Summary
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
Log()
           
 
Method Summary
 int doStartTag()
           
 void release()
           
 void setApplication(boolean application)
          set the value application Specifies whether to log the application name if one has been specified in a cfapplication tag.
 void setCharset(String charset)
           
 void setDate(boolean useDate)
          set the value date Specifies whether to log the system date.
 void setFile(String file)
          set the value file
 void setLog(String log)
          set the value log If you omit the file attribute, specifies the standard log file in which to write the message.
 void setText(String text)
          set the value text The message text to log.
 void setThread(boolean thread)
          set the value thread Specifies whether to log the thread ID.
 void setTime(boolean useTime)
          set the value time Specifies whether to log the system time.
 void setType(String type)
          set the value type The type or severity of the message.
 
Methods inherited from class railo.runtime.ext.tag.TagImpl
doEndTag, getParent, required, required, required, required, setPageContext, setPageContext, setParent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log

public Log()
Method Detail

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class TagImpl
See Also:
Tag.release()

setLog

public void setLog(String log)
            throws ApplicationException
set the value log If you omit the file attribute, specifies the standard log file in which to write the message. Ignored if you specify a file attribute

Parameters:
log - value to set
Throws:
ApplicationException

setText

public void setText(String text)
set the value text The message text to log.

Parameters:
text - value to set

setType

public void setType(String type)
             throws ApplicationException
set the value type The type or severity of the message.

Parameters:
type - value to set
Throws:
ApplicationException

setTime

public void setTime(boolean useTime)
             throws ApplicationException
set the value time Specifies whether to log the system time.

Parameters:
time - value to set
Throws:
ApplicationException

setFile

public void setFile(String file)
             throws ApplicationException
set the value file

Parameters:
file - value to set
Throws:
ApplicationException

setDate

public void setDate(boolean useDate)
             throws ApplicationException
set the value date Specifies whether to log the system date.

Parameters:
date - value to set
Throws:
ApplicationException

setThread

public void setThread(boolean thread)
               throws ApplicationException
set the value thread Specifies whether to log the thread ID. The thread ID identifies which internal service thread logged a message. Since a service thread normally services a CFML page request to completion, then moves on to the next queued request, the thread ID serves as a rough indication of which request logged a message. Leaving thread IDs turned on can help diagnose patterns of server activity.

Parameters:
thread - value to set
Throws:
ApplicationException

setApplication

public void setApplication(boolean application)
set the value application Specifies whether to log the application name if one has been specified in a cfapplication tag.

Parameters:
application - value to set

doStartTag

public int doStartTag()
               throws PageException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class TagImpl
Throws:
PageException
See Also:
Tag.doStartTag()

setCharset

public void setCharset(String charset)
Parameters:
charset - the charset to set


Copyright © 2012 Railo