Deprecated API

Deprecated Classes
org.apache.log.util.OutputStreamLogger
          Use LoggerOutputStream as this class was misnamed. 
 

Deprecated Fields
org.apache.log.output.AbstractOutputTarget.m_formatter
          You should not be directly accessing this attribute as it will become private next release 
org.apache.log.output.io.WriterTarget.m_output
          Accessing this variable in subclasses is no longer supported and will become private in the future. 
 

Deprecated Methods
org.apache.log.output.AbstractTarget.error(String, Throwable)
          Use getErrorHandler().error(...) directly 
org.apache.log.Logger.getCategory()
          This method violates Inversion of Control principle. If you are relying on its presence then there may be something wrong with the design of your system 
org.apache.log.format.PatternFormatter.getContext(ContextStack, String)
          Use getContextStack rather than this method 
org.apache.log.LogEvent.getContextStack()
          ContextStack has been deprecated and thus so has this method 
org.apache.log.output.AbstractOutputTarget.getFormatter()
          Access to formatter is not advised and this method will be removed in future iterations. It remains only for backwards compatability. 
org.apache.log.Logger.getLogTargets()
          This method is deprecated and will be removed in Future version. Previously it allowed unsafe access to logtargets which permitted masqurade attacks. It currently returns a zero sized array. 
org.apache.log.Logger.getPriority()
          This method violates Inversion of Control principle. It will downgraded to protected access in a future release. When user needs to check priority it is advised that they use the is[Priority]Enabled() functions. 
org.apache.log.Hierarchy.log(String)
          Logging components should use ErrorHandler rather than Hierarchy.log() 
org.apache.log.Hierarchy.log(String, Throwable)
          Logging components should use ErrorHandler rather than Hierarchy.log() 
org.apache.log.output.AbstractOutputTarget.output(String)
          User should overide write() instead of output(). Output exists for backwards compatability and will be removed in future. 
org.apache.log.LogEvent.setContextStack(ContextStack)
          ContextStack has been deprecated and thus so has this method 
org.apache.log.format.PatternFormatter.setFormat(String)
          Parse format in via constructor rather than use this method 
org.apache.log.output.AbstractOutputTarget.setFormatter(Formatter)
          In future this method will become protected access. 
 

Deprecated Constructors
org.apache.log.util.OutputStreamLogger(Logger, Priority)
          Use LoggerOutputStream as this class was misnamed. 
org.apache.log.format.PatternFormatter()
          Use constructor PatternFormatter(String pattern) as this does not correctly initialize object 
 



"Copyright © 2001 Apache Jakarta Project. All Rights Reserved."