You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ Configuration options:
53
53
*`CallLogger.enabled`: add to enable this component
54
54
*`CallLogger.filter`: (optional) restricts functionality to a set of methods, for value format see Method filters section above
55
55
*`CallLogger.tag`: (optional) log tag to be used (default is `CallLogger`)
56
-
*`CallLogger.<class>:<method>`: specifies a call to be logged. `<class>`has to be a full class name like `java.net.URL`. `<method>` can be either a method name like `openConnection` or a more specific method name along with parameter types like `getHeaderField(java.lang.String)`. The value is a format string (see Extended format strings section above).
56
+
*`CallLogger.<method filter>`: specifies that calls to the specified method should be logged. `<method filter>`is a method specification as outlined in the Method filters section above. Note that `.properties` format requires colons to be prefixed with a backslash: `\:`. The value is a format string (see Extended format strings section above).
57
57
58
58
## StreamLogger component
59
59
@@ -68,14 +68,13 @@ Configuration options:
68
68
69
69
## MethodLogger component
70
70
71
-
This component will add logging to the start of each method. In addition to the method signature, the parameter values will be logged.
71
+
This component will add logging to the start of a method. This might be more efficient than `CallLogger` for methods called from many places, and it will log even calls resulting in an exception. The disadvantage is that the method’s return value cannot be logged as it isn’t known at this stage.
72
72
73
73
Configuration options:
74
74
75
75
*`MethodLogger.enabled`: add to enable this component
76
-
*`MethodLogger.filter`: (optional) restricts functionality to a set of methods, for value format see Method filters section above
77
76
*`MethodLogger.tag`: (optional) log tag to be used (default is `MethodLogger`)
78
-
*`MethodLogger.format`: (optional) extended format string to be used, see Extended format strings section above (default is `Entered method {method:%s} ({args:%s})`)
77
+
*`MethodLogger.<method filter>`: specifies a method that should be logged. `<method filter>` is a method specification as outlined in the Method filters section above. Note that `.properties` format requires colons to be prefixed with a backslash: `\:`. The value is a format string like `Entered method {method:%s} ({args:%s})` (see Extended format strings section above).
0 commit comments