Package org.apache.tomcat

Examples of org.apache.tomcat.Logger


     *
     * @param message Message to be written
     */
    public void log(String message) {

  Logger logger = host.getLogger();
  if (logger != null)
      logger.log(message);

    }
View Full Code Here


     * @deprecated As of Java Servlet API 2.1, use
     *  <code>log(String, Throwable)</code> instead
     */
    public void log(Exception exception, String message) {

  Logger logger = host.getLogger();
  if (logger != null)
      logger.log(exception, message);

    }
View Full Code Here

     * @param message Message to be written
     * @param throwable Exception to be reported
     */
    public void log(String message, Throwable throwable) {

  Logger logger = host.getLogger();
  if (logger != null)
      logger.log(message, throwable);

    }
View Full Code Here

     *
     * @param logger The newly associated Logger
     */
    public void setLogger(Logger logger) {

  Logger oldLogger = this.logger;
  this.logger = logger;
  if (this.logger != null)
      this.logger.setContainer(this);
  support.firePropertyChange("logger", oldLogger, this.logger);

View Full Code Here

     *
     * @param message Message to be written
     */
    public void log(String message) {

  Logger logger = context.getLogger();
  if (logger != null)
      logger.log(message);

    }
View Full Code Here

     * @deprecated As of Java Servlet API 2.1, use
     *  <code>log(String, Throwable)</code> instead
     */
    public void log(Exception exception, String message) {

  Logger logger = context.getLogger();
  if (logger != null)
      logger.log(exception, message);

    }
View Full Code Here

     * @param message Message to be written
     * @param throwable Exception to be reported
     */
    public void log(String message, Throwable throwable) {

  Logger logger = context.getLogger();
  if (logger != null)
      logger.log(message, throwable);

    }
View Full Code Here

  HttpProcessor processor = new HttpProcessor(this);
  if (processor instanceof Lifecycle) {
      try {
    ((Lifecycle) processor).start();
      } catch (LifecycleException e) {
    Logger logger = container.getLogger();
    if (logger != null)
        logger.log(threadName + ".newProcessor", e);
      }
  }
  return (processor);

    }
View Full Code Here

      Socket socket = null;
      try {
    socket = serverSocket.accept();
      } catch (IOException e) {
    if (!stopped) {
        Logger logger = container.getLogger();
        if (logger != null)
      logger.log(threadName + ".accept", e);
    }
    break;
      }

      // Hand this socket off to an appropriate processor
      HttpProcessor processor = createProcessor();
      if (processor == null) {
    try {
        Logger logger = container.getLogger();
        if (logger != null)
      logger.log(threadName +
           "select:  No processor available");
        socket.close();
    } catch (IOException e) {
        ;
    }
View Full Code Here

    private void threadStart() {

  if (threadName == null)
      setThreadName("HttpConnector[" + port + "]");

  Logger logger = container.getLogger();
  if (logger != null)
      logger.log(threadName + ":  Starting");

  thread = new Thread(this, threadName);
  thread.setDaemon(true);
  thread.start();
View Full Code Here

TOP

Related Classes of org.apache.tomcat.Logger

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.