Package org.apache.avalon.framework.logger

Examples of org.apache.avalon.framework.logger.ConsoleLogger


        log.debug("=========================================");

        for (int i = 0; i < publicationDirectories.length; i++) {
            File directory = publicationDirectories[i];
            String publicationId = directory.getName();
            PublicationFactory factory = PublicationFactory.getInstance(new ConsoleLogger());
            Publication publication;
            try {
                publication = factory.getPublication(publicationId, getServletContextDirectory());
            } catch (PublicationException e) {
                throw new SchedulerException(e);
View Full Code Here


     */
    public static String[] extractPublicationArguments(String[] args) {
        String servletContextPath = args[0];
        String publicationId = args[1];
        try {
            PublicationFactory factory = PublicationFactory.getInstance(new ConsoleLogger());
            publication = factory.getPublication(publicationId, servletContextPath);
        } catch (PublicationException e) {
            e.printStackTrace();
        }

View Full Code Here

     * @param _objectModel The Cocoon object model.
     */
    public DocumentHelper(ServiceManager manager, Map _objectModel) {
        this.objectModel = _objectModel;
        try {
            PublicationFactory factory = PublicationFactory.getInstance(new ConsoleLogger());
            this.publication = factory.getPublication(_objectModel);
        } catch (PublicationException e) {
            throw new RuntimeException(e);
        }
        this.identityMap = new DocumentIdentityMap(manager, new ConsoleLogger());
    }
View Full Code Here

     * @return A document.
     * @throws DocumentBuildException if the document could not be built.
     */
    public Document getDocument(DocumentIdentityMap identityMap) throws DocumentBuildException {

        PublicationFactory factory = PublicationFactory.getInstance(new ConsoleLogger());
        Publication publication;
        try {
            publication = factory.getPublication(this.publicationId, this.servletContextPath);
        } catch (PublicationException e) {
            throw new RuntimeException(e);
View Full Code Here

        log.debug("Creating CocoonTaskWrapper");

        Publication publication;
        try {
            PublicationFactory factory = PublicationFactory.getInstance(new ConsoleLogger());
            publication = factory.getPublication(objectModel);
        } catch (PublicationException e) {
            throw new ExecutionException(e);
        }
        Request request = ObjectModelHelper.getRequest(objectModel);
View Full Code Here

     * @throws ExecutionException when something went wrong.
     */
    public Publication getPublication() throws ExecutionException {
        Publication publication;
        try {
            PublicationFactory factory = PublicationFactory.getInstance(new ConsoleLogger());
            publication = factory.getPublication(get(Task.PARAMETER_PUBLICATION_ID),
                    get(Task.PARAMETER_SERVLET_CONTEXT));
        } catch (PublicationException e) {
            throw new ExecutionException(e);
        }
View Full Code Here

            configuration.addChild(headers);

            // create a Cocoon instance
            cocoonFactory = new CocoonFactory();
            cocoonFactory.enableLogging(new ConsoleLogger());
            cocoonFactory.contextualize(rootCtx);
            cocoonFactory.configure(configuration);

        } catch (Exception e) {
            String message = "Cannot create cocoon factory";
View Full Code Here

                prompt();
            }

            //Setup testbed
            FOPTestbed testbed = new FOPTestbed();
            ContainerUtil.enableLogging(testbed, new ConsoleLogger(ConsoleLogger.LEVEL_INFO));
            ContainerUtil.configure(testbed, cfg);
            ContainerUtil.initialize(testbed);

            //Start tests
            testbed.doStressTest();
View Full Code Here

  public void doGet(HttpServletRequest request,
                    HttpServletResponse response) throws ServletException
  {
    if (log == null)
      {
    log = new ConsoleLogger(ConsoleLogger.LEVEL_WARN);
   MessageHandler.setScreenLogger(log);
      }
       
    try 
      {
View Full Code Here

    Logger log = null;

    public void doGet(HttpServletRequest request,
                      HttpServletResponse response) throws ServletException {
        if(log == null) {
       log = new ConsoleLogger(ConsoleLogger.LEVEL_WARN);
       MessageHandler.setScreenLogger(log);
        }
        try {
            String foParam = request.getParameter(FO_REQUEST_PARAM);
            String xmlParam = request.getParameter(XML_REQUEST_PARAM);
View Full Code Here

TOP

Related Classes of org.apache.avalon.framework.logger.ConsoleLogger

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.