Java slf4j Logger logInfo(Logger log)

Here you can find the source of logInfo(Logger log)

Description

Writes the logo to the given Logger, using the Info log level.

License

Open Source License

Parameter

Parameter Description
log <code>Logger</code> to write to

Declaration

public static void logInfo(Logger log) 

Method Source Code

//package com.java2s;
/*----------------------------------------------------------------------------
 This file is part of deegree, http://deegree.org/
 Copyright (C) 2001-2009 by:/*from w ww .  j  a va 2 s .c  o m*/
 - Department of Geography, University of Bonn -
 and
 - lat/lon GmbH -

 This library is free software; you can redistribute it and/or modify it under
 the terms of the GNU Lesser General Public License as published by the Free
 Software Foundation; either version 2.1 of the License, or (at your option)
 any later version.
 This library is distributed in the hope that it will be useful, but WITHOUT
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 details.
 You should have received a copy of the GNU Lesser General Public License
 along with this library; if not, write to the Free Software Foundation, Inc.,
 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

 Contact information:

 lat/lon GmbH
 Aennchenstr. 19, 53177 Bonn
 Germany
 http://lat-lon.de/

 Department of Geography, University of Bonn
 Prof. Dr. Klaus Greve
 Postfach 1147, 53001 Bonn
 Germany
 http://www.geographie.uni-bonn.de/deegree/

 e-mail: info@deegree.org
 ----------------------------------------------------------------------------*/

import java.util.LinkedList;
import java.util.List;
import org.slf4j.Logger;

public class Main {
    private static List<String> lines = new LinkedList<String>();

    /**
     * Writes the logo to the given <code>Logger</code>, using the <code>Info</code> log level.
     * 
     * @param log
     *            <code>Logger</code> to write to
     */
    public static void logInfo(Logger log) {
        for (String line : lines) {
            log.info(line);
        }
    }
}

Related

  1. logErrors(Logger logger, List strings)
  2. LogException(Logger log, String descrption, Throwable e)
  3. logExit(Logger logger, String methodName, String returnValue, long timeSpent)
  4. loggerForThisClass()
  5. loggerWithName(Class klass, String name)
  6. logInfo(Logger log, Throwable t)
  7. logInfo(Logger logger, String s)
  8. logJavaProperties(Logger log)
  9. logLine(final Logger logger, final Level level, final String msg, final boolean withStackTrace, final String logMessagePrefix)