Editing
Loggifier.unkrig.de
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Discriminator expression parameters === To provide fine-grained control over loggification, the properties of each loggification point are provided as parameters to the discriminator expression: ;action :One of the [[#Logging actions|documented logging actions]] ;source :The name of the Java source file that JAVAC stores in each <code>.class</code> file if enabled by <code>-g:source</code>. ;classAccess :The accessibility of the class being instrumented (<code>public</code>, <code>protected</code> or <code>private</code>) ;class :The fully qualified name of the class being instrumented, e.g. <code>pkg.MyClass</code> ;methodAccess :The accessibility of the method being instrumented (<code>public</code>, <code>protected</code> or <code>private</code>) ;method :The enhanced, dequalified name of the method being instrumented, e.g. <code>meth(String, MyClass)</code> or <code><T extends IOException>meth(T, MyClass, List<T>)</code> ;line :The line number related to the code point being instrumented that JAVAC stores in each .class file if enabled by <code>-g:lines</code> ;type :The relevant type for the operation, e.g. <code>pkg.Class</code>, <code>pkg.Class[][]</code>, <code>int[][]</code> (only for actions '''CAST''', '''INSTANCEOF''' and '''NEW''') ;classAndField :The subject class and field, e.g. <code>pkg.Class.field</code> (only for actions '''GET''' and '''PUT''') ;variable :The name of the subject local variable (only for actions '''LOAD''' and '''STORE''') At each loggification point, the LOGGIFIER determines if logging code is to be inserted or not ('discrimination') and on which level the event will be logged at runtime ('level'). This is achieved by checking the 'loggification rules'.
Summary:
Please note that all contributions to unkrig.de may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Unkrig.de:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help
Tools
What links here
Related changes
Special pages
Page information