X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Tools%2FSource%2FPcdTools%2Forg%2Ftianocore%2Fpcd%2Faction%2FActionMessage.java;h=3c4b467f7fa5fbb39903b5dfeee57dbbb2670f35;hp=2b589e571a4a680e9b6cfbd9f16f7d13e569a840;hb=bc2628416cd8bb007c68520b2d45cf9601de0daa;hpb=af98370ea4e0df114beae0707987f9426b1880cd diff --git a/Tools/Source/PcdTools/org/tianocore/pcd/action/ActionMessage.java b/Tools/Source/PcdTools/org/tianocore/pcd/action/ActionMessage.java index 2b589e571a..3c4b467f7f 100644 --- a/Tools/Source/PcdTools/org/tianocore/pcd/action/ActionMessage.java +++ b/Tools/Source/PcdTools/org/tianocore/pcd/action/ActionMessage.java @@ -3,13 +3,13 @@ ActionMessage class take over all message for loging and waning. This class should dispatch message into different class according to instance class type. - + 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. @@ -17,49 +17,55 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. package org.tianocore.pcd.action; import org.apache.tools.ant.Task; +import org.tianocore.logger.EdkLog; -/** ActionMessage class take over all message for loging and waning. This class - should dispatch message into different Action class according to instance +/** ActionMessage class take over all message for loging and waning. This class + should dispatch message into different Action class according to instance class type. **/ public class ActionMessage { /// - /// Macro definition for NULL messge level. + /// Macro definition for NULL messge level. /// In this meessage level, all message will be hidden. /// - public final static int NULL_MESSAGE_LEVEL = 0; + public final static int NULL_MESSAGE_LEVEL = 0; + /// /// Macro definition for Log messge level. /// In this message level, Only log information will be shown. /// public final static int LOG_MESSAGE_LEVEL = 1; + /// - /// Macro definition for Warning message level. + /// Macro definition for Warning message level. /// In this message level, log and waning message will be shown. /// public final static int WARNING_MESSAGE_LEVEL = 2; + /// /// Macro definition for Debug mesage level. /// In this message level, log, warning, debug message will be shown. /// public final static int DEBUG_MESSAGE_LEVEL = 3; + /// /// Macor definition for MAX message level. /// In this message level, all message will be shown. /// public final static int MAX_MESSAGE_LEVEL = 4; + /// /// Current message level. It will control all message output for PCD tool. /// public static int messageLevel = NULL_MESSAGE_LEVEL; /** - Log() function provide common log information functionality for all + Log() function provide common log information functionality for all PCD tool includes all function This function will dispatch message to special class such as BuildAction Class, Entity Class etc. - + @param thisClass The class object who want log information. @param logStr The string contains log information. **/ @@ -76,15 +82,15 @@ public class ActionMessage { } /** - Warning() function provide common warning information functionality for all + Warning() function provide common warning information functionality for all PCD tool. This function will dispatch message to special class such as BuildAction Class, Entity Class etc. - + @param thisClass The class object who want warn information. @param warningStr The string contains warning information. - **/ + **/ public static void warning(Object thisClass, String warningStr) { if(messageLevel < WARNING_MESSAGE_LEVEL) { return; @@ -98,15 +104,15 @@ public class ActionMessage { } /** - Debug() function provide common Debug information functionality for all + Debug() function provide common Debug information functionality for all PCD tool. This function will dispatch message to special class such as BuildAction Class, Entity Class etc. - + @param thisClass The class object who want Debug information. @param debugStr The string contains Debug information. - **/ + **/ public static void debug(Object thisClass, String debugStr) { if(messageLevel < DEBUG_MESSAGE_LEVEL) { return;