001/* 002 * Forge Mod Loader 003 * Copyright (c) 2012-2013 cpw. 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the GNU Lesser Public License v2.1 006 * which accompanies this distribution, and is available at 007 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 008 * 009 * Contributors: 010 * cpw - implementation 011 */ 012 013package cpw.mods.fml.common; 014 015import java.util.logging.Level; 016import java.util.logging.Logger; 017 018public class FMLLog 019{ 020 private static cpw.mods.fml.relauncher.FMLRelaunchLog coreLog = cpw.mods.fml.relauncher.FMLRelaunchLog.log; 021 022 public static void log(String logChannel, Level level, String format, Object... data) 023 { 024 coreLog.log(logChannel, level, format, data); 025 } 026 027 public static void log(Level level, String format, Object... data) 028 { 029 coreLog.log(level, format, data); 030 } 031 032 public static void log(String logChannel, Level level, Throwable ex, String format, Object... data) 033 { 034 coreLog.log(logChannel, level, ex, format, data); 035 } 036 037 public static void log(Level level, Throwable ex, String format, Object... data) 038 { 039 coreLog.log(level, ex, format, data); 040 } 041 042 public static void severe(String format, Object... data) 043 { 044 log(Level.SEVERE, format, data); 045 } 046 047 public static void warning(String format, Object... data) 048 { 049 log(Level.WARNING, format, data); 050 } 051 052 public static void info(String format, Object... data) 053 { 054 log(Level.INFO, format, data); 055 } 056 057 public static void fine(String format, Object... data) 058 { 059 log(Level.FINE, format, data); 060 } 061 062 public static void finer(String format, Object... data) 063 { 064 log(Level.FINER, format, data); 065 } 066 067 public static void finest(String format, Object... data) 068 { 069 log(Level.FINEST, format, data); 070 } 071 public static Logger getLogger() 072 { 073 return coreLog.getLogger(); 074 } 075 076 public static void makeLog(String logChannel) 077 { 078 coreLog.makeLog(logChannel); 079 } 080}