From: yshi8 Date: Tue, 15 Aug 2006 05:48:17 +0000 (+0000) Subject: moved exception and logger classes to org.tianocore.common package; and created defin... X-Git-Tag: edk2-stable201903~24606 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=3b614fb901dce0c0656375a37e9d152585ebf0cf moved exception and logger classes to org.tianocore.common package; and created definitions classes to put common definitions. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1267 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/Tools/Source/Common/org/tianocore/common/definitions/EdkDefinitions.java b/Tools/Source/Common/org/tianocore/common/definitions/EdkDefinitions.java new file mode 100644 index 0000000000..c455581a99 --- /dev/null +++ b/Tools/Source/Common/org/tianocore/common/definitions/EdkDefinitions.java @@ -0,0 +1,111 @@ +/** @file + EdkDefinitions Class. + + EdkDefinitions class incldes the common EDK definitions which are used + by the Tools. + +Copyright (c) 2006, Intel Corporation +All rights reserved. This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +**/ + +package org.tianocore.definitions; + +/** + This class includes the common EDK definitions. + **/ +public class EdkDefinitions { + /// + /// MODULE_TYPE definitions + /// + public final static String MODULE_TYPE_BASE = "BASE"; + public final static String MODULE_TYPE_SEC = "SEC"; + public final static String MODULE_TYPE_PEI_CORE = "PEI_CORE"; + public final static String MODULE_TYPE_PEIM = "PEIM"; + public final static String MODULE_TYPE_DXE_CORE = "DXE_CORE"; + public final static String MODULE_TYPE_DXE_DRIVER = "DXE_DRIVER"; + public final static String MODULE_TYPE_DXE_RUNTIME_DRIVER = "DXE_RUNTIME_DRIVER"; + public final static String MODULE_TYPE_DXE_SMM_DRIVER = "DXE_SMM_DRIVER"; + public final static String MODULE_TYPE_DXE_SAL_DRIVER = "DXE_SAL_DRIVER"; + public final static String MODULE_TYPE_UEFI_DRIVER = "UEFI_DRIVER"; + public final static String MODULE_TYPE_UEFI_APPLICATION = "UEFI_APPLICATION"; + public final static String MODULE_TYPE_USER_DEFINED = "USER_DEFINED"; + public final static String MODULE_TYPE_TOOL = "TOOL"; + + /// + /// Extension definitions for each of module types + /// + public final static String ModuleTypeExtensions[][] = { + { MODULE_TYPE_BASE, ".FFS" }, + { MODULE_TYPE_SEC, ".SEC" }, + { MODULE_TYPE_PEI_CORE, ".PEI" }, + { MODULE_TYPE_PEIM, ".PEI" }, + { MODULE_TYPE_DXE_CORE, ".DXE" }, + { MODULE_TYPE_DXE_DRIVER, ".DXE" }, + { MODULE_TYPE_DXE_RUNTIME_DRIVER, ".DXE" }, + { MODULE_TYPE_DXE_SMM_DRIVER, ".DXE" }, + { MODULE_TYPE_DXE_SAL_DRIVER, ".DXE" }, + { MODULE_TYPE_UEFI_DRIVER, ".DXE" }, + { MODULE_TYPE_UEFI_APPLICATION, ".APP" }, + { MODULE_TYPE_USER_DEFINED, ".FFS" }, + { MODULE_TYPE_TOOL, ".FFS" } + }; + + /// + /// FFS_TYPE definitions + /// + public final static int EFI_FV_FILETYPE_ALL = 0x00; + public final static int EFI_FV_FILETYPE_RAW = 0x01; + public final static int EFI_FV_FILETYPE_FREEFORM = 0x02; + public final static int EFI_FV_FILETYPE_SECURITY_CORE = 0x03; + public final static int EFI_FV_FILETYPE_PEI_CORE = 0x04; + public final static int EFI_FV_FILETYPE_DXE_CORE = 0x05; + public final static int EFI_FV_FILETYPE_PEIM = 0x06; + public final static int EFI_FV_FILETYPE_DRIVER = 0x07; + public final static int EFI_FV_FILETYPE_COMBINED_PEIM_DRIVER = 0x08; + public final static int EFI_FV_FILETYPE_APPLICATION = 0x09; + public final static int EFI_FV_FILETYPE_FIRMWARE_VOLUME_IMAGE = 0x0B; + public final static int EFI_FV_FILETYPE_FFS_PAD = 0xF0; + + /// + /// SECTION_TYPE definitions + /// + public final static String EFI_SECTION_COMPRESSION = "EFI_SECTION_COMPRESSION"; + public final static String EFI_SECTION_GUID_DEFINED = "EFI_SECTION_GUID_DEFINED"; + public final static String EFI_SECTION_PE32 = "EFI_SECTION_PE32"; + public final static String EFI_SECTION_PIC = "EFI_SECTION_PIC"; + public final static String EFI_SECTION_TE = "EFI_SECTION_TE"; + public final static String EFI_SECTION_DXE_DEPEX = "EFI_SECTION_DXE_DEPEX"; + public final static String EFI_SECTION_VERSION = "EFI_SECTION_VERSION"; + public final static String EFI_SECTION_USER_INTERFACE = "EFI_SECTION_USER_INTERFACE"; + public final static String EFI_SECTION_COMPATIBILITY16 = "EFI_SECTION_COMPATIBILITY16"; + public final static String EFI_SECTION_FIRMWARE_VOLUME_IMAGE = "EFI_SECTION_FIRMWARE_VOLUME_IMAGE"; + public final static String EFI_SECTION_FREEFORM_SUBTYPE_GUID = "EFI_SECTION_FREEFORM_SUBTYPE_GUID"; + public final static String EFI_SECTION_RAW = "EFI_SECTION_RAW"; + public final static String EFI_SECTION_PEI_DEPEX = "EFI_SECTION_PEI_DEPEX"; + + /// + /// Extension definitions for each of section types + /// + public final static String SectionTypeExtensions[][] = { + { EFI_SECTION_COMPRESSION, ".sec" }, + { EFI_SECTION_GUID_DEFINED, ".sec" }, + { EFI_SECTION_PE32, ".pe32" }, + { EFI_SECTION_PIC, ".pic" }, + { EFI_SECTION_TE, ".tes" }, + { EFI_SECTION_DXE_DEPEX, ".dpx" }, + { EFI_SECTION_VERSION, ".ver" }, + { EFI_SECTION_USER_INTERFACE, ".ui" }, + { EFI_SECTION_COMPATIBILITY16, ".sec" }, + { EFI_SECTION_FIRMWARE_VOLUME_IMAGE, ".sec" }, + { EFI_SECTION_FREEFORM_SUBTYPE_GUID, ".sec" }, + { EFI_SECTION_RAW, ".sec" }, + { EFI_SECTION_PEI_DEPEX, ".dpx" } + }; +} diff --git a/Tools/Source/Common/org/tianocore/common/definitions/ToolDefinitions.java b/Tools/Source/Common/org/tianocore/common/definitions/ToolDefinitions.java new file mode 100644 index 0000000000..cc95e1f66a --- /dev/null +++ b/Tools/Source/Common/org/tianocore/common/definitions/ToolDefinitions.java @@ -0,0 +1,100 @@ +/** @file + ToolDefinitions Class. + + ToolDefinitions class incldes the common Tool definitions. + +Copyright (c) 2006, Intel Corporation +All rights reserved. This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +**/ + +package org.tianocore.definitions; + +import java.io.File; + +/** + This class includes the common Tool definitions. + **/ +public class ToolDefinitions { + /// + /// Line separator (carriage return-line feed, CRLF) + /// + public final static String LINE_SEPARATOR = "\r\n"; + + /// + /// Framework Database (FrameworkDatabase.db) file path + /// + public final static String FRAMEWORK_DATABASE_FILE_PATH = + "Tools" + File.separatorChar + "Conf" + File.separatorChar + "FrameworkDatabase.db"; + + /// + /// Target (target.txt) file path + /// + public final static String TARGET_FILE_PATH = + "Tools" + File.separatorChar + "Conf" + File.separatorChar + "target.txt"; + + /// + /// Default Tools Definition (tools_def.txt) file path + /// + public final static String DEFAULT_TOOLS_DEF_FILE_PATH = + "Tools" + File.separatorChar + "Conf" + File.separatorChar + "tools_def.txt"; + + /// + /// Extension names for SPD, FPD, and MSA + /// + public final static String SPD_EXTENSION = ".spd"; + public final static String FPD_EXTENSION = ".fpd"; + public final static String MSA_EXTENSION = ".msa"; + + /// + /// Tool Chain Elements in the Tools Definition file + /// + public final static String TOOLS_DEF_ELEMENT_TARGET = "TARGET"; + public final static String TOOLS_DEF_ELEMENT_TOOLCHAIN = "TOOLCHAIN"; + public final static String TOOLS_DEF_ELEMENT_ARCH = "ARCH"; + public final static String TOOLS_DEF_ELEMENT_TOOLCODE = "TOOLCODE"; + public final static String TOOLS_DEF_ELEMENT_ATTRIBUTE = "ATTRIBUTE"; + + /// + /// Index of Tool Chain elements in the Tools Definition file + /// + public final static int TOOLS_DEF_ELEMENT_INDEX_TARGET = 0; + public final static int TOOLS_DEF_ELEMENT_INDEX_TOOLCHAIN = 1; + public final static int TOOLS_DEF_ELEMENT_INDEX_ARCH = 2; + public final static int TOOLS_DEF_ELEMENT_INDEX_TOOLCODE = 3; + public final static int TOOLS_DEF_ELEMENT_INDEX_ATTRIBUTE = 4; + public final static int TOOLS_DEF_ELEMENT_INDEX_MAXIMUM = 5; + + /// + /// Tool Chain Attributes in the Tools Definition file + /// + public final static String TOOLS_DEF_ATTRIBUTE_NAME = "NAME"; + public final static String TOOLS_DEF_ATTRIBUTE_PATH = "PATH"; + public final static String TOOLS_DEF_ATTRIBUTE_DPATH = "DPATH"; + public final static String TOOLS_DEF_ATTRIBUTE_SPATH = "SPATH"; + public final static String TOOLS_DEF_ATTRIBUTE_EXT = "EXT"; + public final static String TOOLS_DEF_ATTRIBUTE_FAMILY = "FAMILY"; + public final static String TOOLS_DEF_ATTRIBUTE_FLAGS = "FALGS"; + + /// + /// Tool Chain Families in the Tools Definition file + /// + public final static String TOOLS_DEF_FAMILY_MSFT = "MSFT"; + public final static String TOOLS_DEF_FAMILY_INTEL = "INTEL"; + public final static String TOOLS_DEF_FAMILY_GCC = "GCC"; + + /// + /// Key name in the Target file + /// + public final static String TARGET_KEY_ACTIVE_PLATFORM = "ACTIVE_PLATFORM"; + public final static String TARGET_KEY_TARGET = "TARGET"; + public final static String TARGET_KEY_TOOLCHAIN = "TOOL_CHAIN_TAG"; + public final static String TARGET_KEY_ARCH = "TARGET_ARCH"; + public final static String TARGET_KEY_TOOLS_DEF = "TOOL_CHAIN_CONF"; +} diff --git a/Tools/Source/Common/org/tianocore/common/exception/EdkException.java b/Tools/Source/Common/org/tianocore/common/exception/EdkException.java new file mode 100644 index 0000000000..bd143d860a --- /dev/null +++ b/Tools/Source/Common/org/tianocore/common/exception/EdkException.java @@ -0,0 +1,48 @@ +/*++ + +Copyright (c) 2006, Intel Corporation +All rights reserved. This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +Module Name: + EdkException.java + +Abstract: + +--*/ +package org.tianocore.exception; + +public class EdkException extends Exception { + static final long serialVersionUID = -8494188017252114029L; + private StackTraceElement[] stackTrace; + public static boolean isPrintStack = false; + + public EdkException(String message) { + super("[EdkException]:" + message); + } + + public EdkException(String message, boolean traceStack) { + super(message); + + } + + public EdkException(){ + super(); + } + + public EdkException(Exception e, String message){ + super("[EdkException]:" + message); + if (isPrintStack){ + this.setStackTrace(e.getStackTrace()); + } + e.printStackTrace(); + } + public static void setIsprintStack (boolean flag){ + isPrintStack = flag; + } +} diff --git a/Tools/Source/Common/org/tianocore/common/logger/DefaultLogger.java b/Tools/Source/Common/org/tianocore/common/logger/DefaultLogger.java new file mode 100644 index 0000000000..4bec8e52b4 --- /dev/null +++ b/Tools/Source/Common/org/tianocore/common/logger/DefaultLogger.java @@ -0,0 +1,36 @@ +/*++ + +Copyright (c) 2006, Intel Corporation +All rights reserved. This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +Module Name: + DefaultLogger.java + +Abstract: + +--*/ + +package org.tianocore.logger; +import java.util.logging.Level; +import java.util.logging.Logger; + +class DefaultLogger implements LogMethod { + private Logger logger = Logger.global; + private static Level[] levelMap = { + Level.SEVERE, Level.WARNING, Level.INFO, Level.FINE, Level.ALL + }; + + public DefaultLogger() { + + } + + public void putMessage(Object msgSource, int msgLevel, String msg) { + logger.log(levelMap[msgLevel], msg); + } +} \ No newline at end of file diff --git a/Tools/Source/Common/org/tianocore/common/logger/EdkLog.java b/Tools/Source/Common/org/tianocore/common/logger/EdkLog.java new file mode 100644 index 0000000000..b16d39c2b1 --- /dev/null +++ b/Tools/Source/Common/org/tianocore/common/logger/EdkLog.java @@ -0,0 +1,91 @@ +/*++ + +Copyright (c) 2006, Intel Corporation +All rights reserved. This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +Module Name: + EdkLogger.java + +Abstract: + +--*/ +package org.tianocore.logger; + +import org.tianocore.logger.LogMethod; + + +public class EdkLog { + private static final String error = "ERROR"; + private static final String warning = "WARNING"; + private static final String info = "INFO"; + private static final String verbose = "VERBOSE"; + private static final String debug = "DEBUG"; + + public static final int EDK_ERROR = 0; + public static final int EDK_WARNING = 1; + public static final int EDK_INFO = 2; + public static final int EDK_VERBOSE = 3; + public static final int EDK_DEBUG = 4; + + private static int logLevel = EDK_INFO; + private static LogMethod logger = new DefaultLogger(); + + public static void log(int level, String message) { + if (level <= logLevel){ + logger.putMessage(null, logLevel, message); + } + + } + + public static void log(int logLevel, String message, Exception cause) { + + } + + public static void log(int logLevel, Exception cause) { + + } + + public static void log(Exception cause) { + + } + + public static void setLogger(LogMethod l) { + logger = l; + } + + public static void setLogLevel (int level){ + logLevel = level; + } + public static void setLogLevel (String level){ + if (level == null){ + return; + } + String levelStr = level.trim(); + if (levelStr.equalsIgnoreCase(error)){ + logLevel = EDK_ERROR; + } + if (levelStr.equalsIgnoreCase(debug)){ + logLevel = EDK_DEBUG; + } + if (levelStr.equalsIgnoreCase(info)){ + logLevel = EDK_INFO; + } + if (levelStr.equalsIgnoreCase(verbose)){ + logLevel = EDK_VERBOSE; + } + if (levelStr.equalsIgnoreCase(warning)){ + logLevel = EDK_WARNING; + } + } + public static int getLogLevel (){ + return logLevel; + } +} + + diff --git a/Tools/Source/Common/org/tianocore/common/logger/LogMethod.java b/Tools/Source/Common/org/tianocore/common/logger/LogMethod.java new file mode 100644 index 0000000000..ab6024083a --- /dev/null +++ b/Tools/Source/Common/org/tianocore/common/logger/LogMethod.java @@ -0,0 +1,23 @@ +/*++ + +Copyright (c) 2006, Intel Corporation +All rights reserved. This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +Module Name: + LogMethod.java + +Abstract: + +--*/ +package org.tianocore.logger; + + +public interface LogMethod { + public void putMessage(Object msgSource, int msgLevel, String msg); +} diff --git a/Tools/Source/Common/org/tianocore/exception/EdkException.java b/Tools/Source/Common/org/tianocore/exception/EdkException.java deleted file mode 100644 index bd143d860a..0000000000 --- a/Tools/Source/Common/org/tianocore/exception/EdkException.java +++ /dev/null @@ -1,48 +0,0 @@ -/*++ - -Copyright (c) 2006, Intel Corporation -All rights reserved. This program and the accompanying materials -are licensed and made available under the terms and conditions of the BSD License -which accompanies this distribution. The full text of the license may be found at -http://opensource.org/licenses/bsd-license.php - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - -Module Name: - EdkException.java - -Abstract: - ---*/ -package org.tianocore.exception; - -public class EdkException extends Exception { - static final long serialVersionUID = -8494188017252114029L; - private StackTraceElement[] stackTrace; - public static boolean isPrintStack = false; - - public EdkException(String message) { - super("[EdkException]:" + message); - } - - public EdkException(String message, boolean traceStack) { - super(message); - - } - - public EdkException(){ - super(); - } - - public EdkException(Exception e, String message){ - super("[EdkException]:" + message); - if (isPrintStack){ - this.setStackTrace(e.getStackTrace()); - } - e.printStackTrace(); - } - public static void setIsprintStack (boolean flag){ - isPrintStack = flag; - } -} diff --git a/Tools/Source/Common/org/tianocore/logger/DefaultLogger.java b/Tools/Source/Common/org/tianocore/logger/DefaultLogger.java deleted file mode 100644 index 4bec8e52b4..0000000000 --- a/Tools/Source/Common/org/tianocore/logger/DefaultLogger.java +++ /dev/null @@ -1,36 +0,0 @@ -/*++ - -Copyright (c) 2006, Intel Corporation -All rights reserved. This program and the accompanying materials -are licensed and made available under the terms and conditions of the BSD License -which accompanies this distribution. The full text of the license may be found at -http://opensource.org/licenses/bsd-license.php - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - -Module Name: - DefaultLogger.java - -Abstract: - ---*/ - -package org.tianocore.logger; -import java.util.logging.Level; -import java.util.logging.Logger; - -class DefaultLogger implements LogMethod { - private Logger logger = Logger.global; - private static Level[] levelMap = { - Level.SEVERE, Level.WARNING, Level.INFO, Level.FINE, Level.ALL - }; - - public DefaultLogger() { - - } - - public void putMessage(Object msgSource, int msgLevel, String msg) { - logger.log(levelMap[msgLevel], msg); - } -} \ No newline at end of file diff --git a/Tools/Source/Common/org/tianocore/logger/EdkLog.java b/Tools/Source/Common/org/tianocore/logger/EdkLog.java deleted file mode 100644 index b16d39c2b1..0000000000 --- a/Tools/Source/Common/org/tianocore/logger/EdkLog.java +++ /dev/null @@ -1,91 +0,0 @@ -/*++ - -Copyright (c) 2006, Intel Corporation -All rights reserved. This program and the accompanying materials -are licensed and made available under the terms and conditions of the BSD License -which accompanies this distribution. The full text of the license may be found at -http://opensource.org/licenses/bsd-license.php - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - -Module Name: - EdkLogger.java - -Abstract: - ---*/ -package org.tianocore.logger; - -import org.tianocore.logger.LogMethod; - - -public class EdkLog { - private static final String error = "ERROR"; - private static final String warning = "WARNING"; - private static final String info = "INFO"; - private static final String verbose = "VERBOSE"; - private static final String debug = "DEBUG"; - - public static final int EDK_ERROR = 0; - public static final int EDK_WARNING = 1; - public static final int EDK_INFO = 2; - public static final int EDK_VERBOSE = 3; - public static final int EDK_DEBUG = 4; - - private static int logLevel = EDK_INFO; - private static LogMethod logger = new DefaultLogger(); - - public static void log(int level, String message) { - if (level <= logLevel){ - logger.putMessage(null, logLevel, message); - } - - } - - public static void log(int logLevel, String message, Exception cause) { - - } - - public static void log(int logLevel, Exception cause) { - - } - - public static void log(Exception cause) { - - } - - public static void setLogger(LogMethod l) { - logger = l; - } - - public static void setLogLevel (int level){ - logLevel = level; - } - public static void setLogLevel (String level){ - if (level == null){ - return; - } - String levelStr = level.trim(); - if (levelStr.equalsIgnoreCase(error)){ - logLevel = EDK_ERROR; - } - if (levelStr.equalsIgnoreCase(debug)){ - logLevel = EDK_DEBUG; - } - if (levelStr.equalsIgnoreCase(info)){ - logLevel = EDK_INFO; - } - if (levelStr.equalsIgnoreCase(verbose)){ - logLevel = EDK_VERBOSE; - } - if (levelStr.equalsIgnoreCase(warning)){ - logLevel = EDK_WARNING; - } - } - public static int getLogLevel (){ - return logLevel; - } -} - - diff --git a/Tools/Source/Common/org/tianocore/logger/LogMethod.java b/Tools/Source/Common/org/tianocore/logger/LogMethod.java deleted file mode 100644 index ab6024083a..0000000000 --- a/Tools/Source/Common/org/tianocore/logger/LogMethod.java +++ /dev/null @@ -1,23 +0,0 @@ -/*++ - -Copyright (c) 2006, Intel Corporation -All rights reserved. This program and the accompanying materials -are licensed and made available under the terms and conditions of the BSD License -which accompanies this distribution. The full text of the license may be found at -http://opensource.org/licenses/bsd-license.php - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - -Module Name: - LogMethod.java - -Abstract: - ---*/ -package org.tianocore.logger; - - -public interface LogMethod { - public void putMessage(Object msgSource, int msgLevel, String msg); -}