예제 #1
0
파일: Log.cs 프로젝트: emumanu/OpenUI5Sharp
 /// <summary>
 /// Defines the maximum <code>sap.base.log.Level</code> of log entries that will be recorded. Log entries with a higher (less important) log level will be omitted from the log. When a component name is given, the log level will be configured for that component only, otherwise the log level for the default component of this logger is set. For the global logger, the global default level is set.
 ///
 /// <b>Note</b>: Setting a global default log level has no impact on already defined component log levels. They always override the global default log level.
 /// </summary>
 /// <param name="iLogLevel">The new log level</param>
 public extern static void setLevel([email protected] iLogLevel);
예제 #2
0
파일: Log.cs 프로젝트: emumanu/OpenUI5Sharp
 /// <summary>
 /// Defines the maximum <code>sap.base.log.Level</code> of log entries that will be recorded. Log entries with a higher (less important) log level will be omitted from the log. When a component name is given, the log level will be configured for that component only, otherwise the log level for the default component of this logger is set. For the global logger, the global default level is set.
 ///
 /// <b>Note</b>: Setting a global default log level has no impact on already defined component log levels. They always override the global default log level.
 /// </summary>
 /// <param name="iLogLevel">The new log level</param>
 /// <param name="sComponent">The log component to set the log level for</param>
 public extern static void setLevel([email protected] iLogLevel, string sComponent);
예제 #3
0
파일: Log.cs 프로젝트: emumanu/OpenUI5Sharp
 /// <summary>
 /// Checks whether logging is enabled for the given log level, depending on the currently effective log level for the given component.
 ///
 /// If no component is given, the default component of this logger will be taken into account.
 /// </summary>
 /// <param name="iLevel">The log level in question</param>
 /// <param name="sComponent">Name of the component to check the log level for</param>
 /// <returns>Whether logging is enabled or not</returns>
 public extern static bool isLoggable([email protected] iLevel, string sComponent);
예제 #4
0
파일: Log.cs 프로젝트: emumanu/OpenUI5Sharp
 /// <summary>
 /// Checks whether logging is enabled for the given log level, depending on the currently effective log level for the given component.
 ///
 /// If no component is given, the default component of this logger will be taken into account.
 /// </summary>
 /// <param name="iLevel">The log level in question</param>
 /// <returns>Whether logging is enabled or not</returns>
 public extern static bool isLoggable([email protected] iLevel);
예제 #5
0
파일: Log.cs 프로젝트: emumanu/OpenUI5Sharp
 /// <summary>
 /// Returns a dedicated logger for a component
 ///
 /// The logger comes with the same API as the Logger module: <ul> <li><code>#fatal</code> - see: {@link sap/base/Log.fatal} <li><code>#error</code> - see: {@link sap/base/Log.error} <li><code>#warning</code> - see: {@link sap/base/Log.warning} <li><code>#info</code> - see: {@link sap/base/Log.info} <li><code>#debug</code> - see: {@link sap/base/Log.debug} <li><code>#trace</code> - see: {@link sap/base/Log.trace} <li><code>#setLevel</code> - see: {@link sap/base/Log.setLevel} <li><code>#getLevel</code> - see: {@link sap/base/Log.getLevel} <li><code>#isLoggable</code> - see: {@link sap/base/Log.isLoggable} </ul>
 /// </summary>
 /// <param name="sComponent">Name of the component which should be logged</param>
 /// <param name="iLogLevel">The default log level</param>
 /// <returns>A logger with a specified component</returns>
 public extern static object getLogger(string sComponent, [email protected] iLogLevel);