다음을 통해 공유


Logger.Logp Method

Definition

Overloads

Logp(Level, String, String, ISupplier)

Log a lazily constructed message, specifying source class and method, with no arguments.

Logp(Level, String, String, String)

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

Logp(Level, String, String, Throwable, ISupplier)

Log a lazily constructed message, specifying source class and method, with associated Throwable information.

Logp(Level, String, String, String, Object)

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

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

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

Logp(Level, String, String, String, Throwable)

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

Logp(Level, String, String, ISupplier)

Log a lazily constructed message, specifying source class and method, with no arguments.

[Android.Runtime.Register("logp", "(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Supplier;)V", "GetLogp_Ljava_util_logging_Level_Ljava_lang_String_Ljava_lang_String_Ljava_util_function_Supplier_Handler", ApiSince=26)]
public virtual void Logp (Java.Util.Logging.Level level, string? sourceClass, string? sourceMethod, Java.Util.Functions.ISupplier msgSupplier);
[<Android.Runtime.Register("logp", "(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Supplier;)V", "GetLogp_Ljava_util_logging_Level_Ljava_lang_String_Ljava_lang_String_Ljava_util_function_Supplier_Handler", ApiSince=26)>]
abstract member Logp : Java.Util.Logging.Level * string * string * Java.Util.Functions.ISupplier -> unit
override this.Logp : Java.Util.Logging.Level * string * string * Java.Util.Functions.ISupplier -> 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

msgSupplier
ISupplier

A function, which when called, produces the desired log message

Attributes

Remarks

Log a lazily constructed message, specifying source class and method, with no arguments.

If the logger is currently enabled for the given message level then the message is constructed by invoking the provided supplier function and forwarded to all the registered output Handler objects.

Added in 1.8.

Java documentation for java.util.logging.Logger.logp(java.util.logging.Level, java.lang.String, java.lang.String, java.util.function.Supplier<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

Logp(Level, String, String, String)

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

[Android.Runtime.Register("logp", "(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "GetLogp_Ljava_util_logging_Level_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual void Logp (Java.Util.Logging.Level level, string? sourceClass, string? sourceMethod, string? msg);
[<Android.Runtime.Register("logp", "(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "GetLogp_Ljava_util_logging_Level_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member Logp : Java.Util.Logging.Level * string * string * string -> unit
override this.Logp : Java.Util.Logging.Level * 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

msg
String

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

Attributes

Remarks

Log a message, specifying source class and method, 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.

Java documentation for java.util.logging.Logger.logp(java.util.logging.Level, 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

Logp(Level, String, String, Throwable, ISupplier)

Log a lazily constructed message, specifying source class and method, with associated Throwable information.

[Android.Runtime.Register("logp", "(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;Ljava/util/function/Supplier;)V", "GetLogp_Ljava_util_logging_Level_Ljava_lang_String_Ljava_lang_String_Ljava_lang_Throwable_Ljava_util_function_Supplier_Handler", ApiSince=26)]
public virtual void Logp (Java.Util.Logging.Level level, string? sourceClass, string? sourceMethod, Java.Lang.Throwable? thrown, Java.Util.Functions.ISupplier msgSupplier);
[<Android.Runtime.Register("logp", "(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;Ljava/util/function/Supplier;)V", "GetLogp_Ljava_util_logging_Level_Ljava_lang_String_Ljava_lang_String_Ljava_lang_Throwable_Ljava_util_function_Supplier_Handler", ApiSince=26)>]
abstract member Logp : Java.Util.Logging.Level * string * string * Java.Lang.Throwable * Java.Util.Functions.ISupplier -> unit
override this.Logp : Java.Util.Logging.Level * string * string * Java.Lang.Throwable * Java.Util.Functions.ISupplier -> 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

thrown
Throwable

Throwable associated with log message.

msgSupplier
ISupplier

A function, which when called, produces the desired log message

Attributes

Remarks

Log a lazily constructed message, specifying source class and method, with associated Throwable information.

If the logger is currently enabled for the given message level then the message is constructed by invoking the provided supplier function. The message and the given Throwable are then stored in a LogRecord which is forwarded to all registered output handlers.

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.logp(java.util.logging.Level, java.lang.String, java.lang.String, java.lang.Throwable, java.util.function.Supplier<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

Logp(Level, String, String, String, Object)

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

[Android.Runtime.Register("logp", "(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V", "GetLogp_Ljava_util_logging_Level_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_Object_Handler")]
public virtual void Logp (Java.Util.Logging.Level level, string? sourceClass, string? sourceMethod, string? msg, Java.Lang.Object? param1);
[<Android.Runtime.Register("logp", "(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V", "GetLogp_Ljava_util_logging_Level_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_Object_Handler")>]
abstract member Logp : Java.Util.Logging.Level * string * string * string * Java.Lang.Object -> unit
override this.Logp : Java.Util.Logging.Level * 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

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 and method, 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.

Java documentation for java.util.logging.Logger.logp(java.util.logging.Level, 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

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

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

[Android.Runtime.Register("logp", "(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V", "GetLogp_Ljava_util_logging_Level_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_arrayLjava_lang_Object_Handler")]
public virtual void Logp (Java.Util.Logging.Level level, string? sourceClass, string? sourceMethod, string? msg, Java.Lang.Object[]? params);
[<Android.Runtime.Register("logp", "(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V", "GetLogp_Ljava_util_logging_Level_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_arrayLjava_lang_Object_Handler")>]
abstract member Logp : Java.Util.Logging.Level * string * string * string * Java.Lang.Object[] -> unit
override this.Logp : Java.Util.Logging.Level * 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

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 and method, 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.

Java documentation for java.util.logging.Logger.logp(java.util.logging.Level, 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

Logp(Level, String, String, String, Throwable)

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

[Android.Runtime.Register("logp", "(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V", "GetLogp_Ljava_util_logging_Level_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_Throwable_Handler")]
public virtual void Logp (Java.Util.Logging.Level level, string? sourceClass, string? sourceMethod, string? msg, Java.Lang.Throwable? thrown);
[<Android.Runtime.Register("logp", "(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V", "GetLogp_Ljava_util_logging_Level_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_Throwable_Handler")>]
abstract member Logp : Java.Util.Logging.Level * string * string * string * Java.Lang.Throwable -> unit
override this.Logp : Java.Util.Logging.Level * 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

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 and method, 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.

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.

Java documentation for java.util.logging.Logger.logp(java.util.logging.Level, 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