Java slf4j Logger logInfo(Logger logger, String s)

Here you can find the source of logInfo(Logger logger, String s)

Description

log Info

License

Open Source License

Declaration

private static void logInfo(Logger logger, String s) 

Method Source Code


//package com.java2s;
/*// w  w w . j av a  2s.c o m
 *  Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
 *
 *  WSO2 Inc. licenses this file to you under the Apache License,
 *  Version 2.0 (the "License"); you may not use this file except
 *  in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing,
 *  software distributed under the License is distributed on an
 *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 *  KIND, either express or implied.  See the License for the
 *  specific language governing permissions and limitations
 *  under the License.
 */

import org.slf4j.Logger;

public class Main {
    private static void logInfo(Logger logger, String s) {
        logger.info("[INFO] " + s);
    }
}

Related

  1. logExit(Logger logger, String methodName, String returnValue, long timeSpent)
  2. loggerForThisClass()
  3. loggerWithName(Class klass, String name)
  4. logInfo(Logger log)
  5. logInfo(Logger log, Throwable t)
  6. logJavaProperties(Logger log)
  7. logLine(final Logger logger, final Level level, final String msg, final boolean withStackTrace, final String logMessagePrefix)
  8. logResult(long time, String traceId, String apiName, String params, String jsonObject)
  9. logThreadGroup(final Logger log, ThreadGroup group, int level)