Udostępnij za pośrednictwem


Logger.Logrb Method

Definition

Overloads

Logrb(Level, String, String, String, String, Throwable)

Log a message, specifying source class, method, and resource bundle name, with associated Throwable information.

Logrb(Level, String, String, String, String, Object)

Log a message, specifying source class, method, and resource bundle name, with a single object parameter to the log message.

Logrb(Level, String, String, String, String, Object[])

Log a message, specifying source class, method, and resource bundle name, with an array of object arguments.

Logrb(Level, String, String, ResourceBundle, String, Object[])

Log a message, specifying source class, method, and resource bundle name with no arguments.

Logrb(Level, String, String, String, String)

Log a message, specifying source class, method, and resource bundle name with no arguments.

Logrb(Level, String, String, ResourceBundle, String, Throwable)

Log a message, specifying source class, method, and resource bundle, with associated Throwable information.

Logrb(Level, String, String, String, String, Throwable)

Log a message, specifying source class, method, and resource bundle name, with associated Throwable information.

[Android.Runtime.Register("logrb", "(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V", "GetLogrb_Ljava_util_logging_Level_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_Throwable_Handler")]
public virtual void Logrb (Java.Util.Logging.Level level, string? sourceClass, string? sourceMethod, string? bundleName, string? msg, Java.Lang.Throwable? thrown);
[<Android.Runtime.Register("logrb", "(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V", "GetLogrb_Ljava_util_logging_Level_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_Throwable_Handler")>]
abstract member Logrb : Java.Util.Logging.Level * string * string * string * string * Java.Lang.Throwable -> unit
override this.Logrb : Java.Util.Logging.Level * string * string * string * string * Java.Lang.Throwable -> unit

Parameters

level
Level

One of the message level identifiers, e.g., SEVERE

sourceClass
String

name of class that issued the logging request

sourceMethod
String

name of method that issued the logging request

bundleName
String

name of resource bundle to localize msg, can be null

msg
String

The string message (or a key in the message catalog)

thrown
Throwable

Throwable associated with log message.

Attributes

Remarks

Log a message, specifying source class, method, and resource bundle name, with associated Throwable information.

If the logger is currently enabled for the given message level then the given arguments are stored in a LogRecord which is forwarded to all registered output handlers.

The msg string is localized using the named resource bundle. If the resource bundle name is null, or an empty String or invalid then the msg string is not localized.

Note that the thrown argument is stored in the LogRecord thrown property, rather than the LogRecord parameters property. Thus it is processed specially by output Formatters and is not treated as a formatting parameter to the LogRecord message property.

This member is deprecated. Use #logrb(java.util.logging.Level, java.lang.String, java.lang.String, java.util.ResourceBundle, java.lang.String, java.lang.Throwable) instead.

Java documentation for java.util.logging.Logger.logrb(java.util.logging.Level, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Throwable).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Logrb(Level, String, String, String, String, Object)

Log a message, specifying source class, method, and resource bundle name, with a single object parameter to the log message.

[Android.Runtime.Register("logrb", "(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V", "GetLogrb_Ljava_util_logging_Level_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_Object_Handler")]
public virtual void Logrb (Java.Util.Logging.Level level, string? sourceClass, string? sourceMethod, string? bundleName, string? msg, Java.Lang.Object? param1);
[<Android.Runtime.Register("logrb", "(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V", "GetLogrb_Ljava_util_logging_Level_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_Object_Handler")>]
abstract member Logrb : Java.Util.Logging.Level * string * string * string * string * Java.Lang.Object -> unit
override this.Logrb : Java.Util.Logging.Level * string * string * string * string * Java.Lang.Object -> unit

Parameters

level
Level

One of the message level identifiers, e.g., SEVERE

sourceClass
String

name of class that issued the logging request

sourceMethod
String

name of method that issued the logging request

bundleName
String

name of resource bundle to localize msg, can be null

msg
String

The string message (or a key in the message catalog)

param1
Object

Parameter to the log message.

Attributes

Remarks

Log a message, specifying source class, method, and resource bundle name, with a single object parameter to the log message.

If the logger is currently enabled for the given message level then a corresponding LogRecord is created and forwarded to all the registered output Handler objects.

The msg string is localized using the named resource bundle. If the resource bundle name is null, or an empty String or invalid then the msg string is not localized.

This member is deprecated. Use #logrb(java.util.logging.Level, java.lang.String, java.lang.String, java.util.ResourceBundle, java.lang.String, java.lang.Object...) instead

Java documentation for java.util.logging.Logger.logrb(java.util.logging.Level, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Object).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Logrb(Level, String, String, String, String, Object[])

Log a message, specifying source class, method, and resource bundle name, with an array of object arguments.

[Android.Runtime.Register("logrb", "(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V", "GetLogrb_Ljava_util_logging_Level_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_arrayLjava_lang_Object_Handler")]
public virtual void Logrb (Java.Util.Logging.Level level, string? sourceClass, string? sourceMethod, string? bundleName, string? msg, Java.Lang.Object[]? params);
[<Android.Runtime.Register("logrb", "(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V", "GetLogrb_Ljava_util_logging_Level_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_arrayLjava_lang_Object_Handler")>]
abstract member Logrb : Java.Util.Logging.Level * string * string * string * string * Java.Lang.Object[] -> unit
override this.Logrb : Java.Util.Logging.Level * string * string * string * string * Java.Lang.Object[] -> unit

Parameters

level
Level

One of the message level identifiers, e.g., SEVERE

sourceClass
String

name of class that issued the logging request

sourceMethod
String

name of method that issued the logging request

bundleName
String

name of resource bundle to localize msg, can be null.

msg
String

The string message (or a key in the message catalog)

params
Object[]

Array of parameters to the message

Attributes

Remarks

Log a message, specifying source class, method, and resource bundle name, with an array of object arguments.

If the logger is currently enabled for the given message level then a corresponding LogRecord is created and forwarded to all the registered output Handler objects.

The msg string is localized using the named resource bundle. If the resource bundle name is null, or an empty String or invalid then the msg string is not localized.

This member is deprecated. Use #logrb(java.util.logging.Level, java.lang.String, java.lang.String, java.util.ResourceBundle, java.lang.String, java.lang.Object...) instead.

Java documentation for java.util.logging.Logger.logrb(java.util.logging.Level, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Object[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Logrb(Level, String, String, ResourceBundle, String, Object[])

Log a message, specifying source class, method, and resource bundle name with no arguments.

[Android.Runtime.Register("logrb", "(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/util/ResourceBundle;Ljava/lang/String;[Ljava/lang/Object;)V", "GetLogrb_Ljava_util_logging_Level_Ljava_lang_String_Ljava_lang_String_Ljava_util_ResourceBundle_Ljava_lang_String_arrayLjava_lang_Object_Handler", ApiSince=26)]
public virtual void Logrb (Java.Util.Logging.Level level, string? sourceClass, string? sourceMethod, Java.Util.ResourceBundle? bundle, string? msg, params Java.Lang.Object[]? params);
[<Android.Runtime.Register("logrb", "(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/util/ResourceBundle;Ljava/lang/String;[Ljava/lang/Object;)V", "GetLogrb_Ljava_util_logging_Level_Ljava_lang_String_Ljava_lang_String_Ljava_util_ResourceBundle_Ljava_lang_String_arrayLjava_lang_Object_Handler", ApiSince=26)>]
abstract member Logrb : Java.Util.Logging.Level * string * string * Java.Util.ResourceBundle * string * Java.Lang.Object[] -> unit
override this.Logrb : Java.Util.Logging.Level * string * string * Java.Util.ResourceBundle * string * Java.Lang.Object[] -> unit

Parameters

level
Level

One of the message level identifiers, e.g., SEVERE

sourceClass
String

name of class that issued the logging request

sourceMethod
String

name of method that issued the logging request

msg
String

The string message (or a key in the message catalog)

params
Object[]
Attributes

Remarks

Java documentation for java.util.logging.Logger.logrb(java.util.logging.Level, java.lang.String, java.lang.String, java.lang.String, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Logrb(Level, String, String, String, String)

Log a message, specifying source class, method, and resource bundle name with no arguments.

[Android.Runtime.Register("logrb", "(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "GetLogrb_Ljava_util_logging_Level_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual void Logrb (Java.Util.Logging.Level level, string? sourceClass, string? sourceMethod, string? bundleName, string? msg);
[<Android.Runtime.Register("logrb", "(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "GetLogrb_Ljava_util_logging_Level_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member Logrb : Java.Util.Logging.Level * string * string * string * string -> unit
override this.Logrb : Java.Util.Logging.Level * string * string * string * string -> unit

Parameters

level
Level

One of the message level identifiers, e.g., SEVERE

sourceClass
String

name of class that issued the logging request

sourceMethod
String

name of method that issued the logging request

bundleName
String

name of resource bundle to localize msg, can be null

msg
String

The string message (or a key in the message catalog)

Attributes

Remarks

Log a message, specifying source class, method, and resource bundle name with no arguments.

If the logger is currently enabled for the given message level then the given message is forwarded to all the registered output Handler objects.

The msg string is localized using the named resource bundle. If the resource bundle name is null, or an empty String or invalid then the msg string is not localized.

This member is deprecated. Use #logrb(java.util.logging.Level, java.lang.String, java.lang.String, java.util.ResourceBundle, java.lang.String, java.lang.Object...) instead.

Java documentation for java.util.logging.Logger.logrb(java.util.logging.Level, java.lang.String, java.lang.String, java.lang.String, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Logrb(Level, String, String, ResourceBundle, String, Throwable)

Log a message, specifying source class, method, and resource bundle, with associated Throwable information.

[Android.Runtime.Register("logrb", "(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/util/ResourceBundle;Ljava/lang/String;Ljava/lang/Throwable;)V", "GetLogrb_Ljava_util_logging_Level_Ljava_lang_String_Ljava_lang_String_Ljava_util_ResourceBundle_Ljava_lang_String_Ljava_lang_Throwable_Handler", ApiSince=26)]
public virtual void Logrb (Java.Util.Logging.Level level, string? sourceClass, string? sourceMethod, Java.Util.ResourceBundle? bundle, string? msg, Java.Lang.Throwable? thrown);
[<Android.Runtime.Register("logrb", "(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/util/ResourceBundle;Ljava/lang/String;Ljava/lang/Throwable;)V", "GetLogrb_Ljava_util_logging_Level_Ljava_lang_String_Ljava_lang_String_Ljava_util_ResourceBundle_Ljava_lang_String_Ljava_lang_Throwable_Handler", ApiSince=26)>]
abstract member Logrb : Java.Util.Logging.Level * string * string * Java.Util.ResourceBundle * string * Java.Lang.Throwable -> unit
override this.Logrb : Java.Util.Logging.Level * string * string * Java.Util.ResourceBundle * string * Java.Lang.Throwable -> unit

Parameters

level
Level

One of the message level identifiers, e.g., SEVERE

sourceClass
String

Name of the class that issued the logging request

sourceMethod
String

Name of the method that issued the logging request

bundle
ResourceBundle

Resource bundle to localize msg, can be null

msg
String

The string message (or a key in the message catalog)

thrown
Throwable

Throwable associated with the log message.

Attributes

Remarks

Log a message, specifying source class, method, and resource bundle, with associated Throwable information.

If the logger is currently enabled for the given message level then the given arguments are stored in a LogRecord which is forwarded to all registered output handlers.

The msg string is localized using the given resource bundle. If the resource bundle is null, then the msg string is not localized.

Note that the thrown argument is stored in the LogRecord thrown property, rather than the LogRecord parameters property. Thus it is processed specially by output Formatters and is not treated as a formatting parameter to the LogRecord message property.

Added in 1.8.

Java documentation for java.util.logging.Logger.logrb(java.util.logging.Level, java.lang.String, java.lang.String, java.util.ResourceBundle, java.lang.String, java.lang.Throwable).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to