alexeyr/scala-trace-entry-exit


Macro annotations to log method calls easily

Language: Scala


Work in progress, current version is not usable!

This is a library containing annotation macros to allow easily and automatically log entering/leaving methods. Just import com.github.alexeyr.trace.entry_exit.TraceEntryExit and annotate your methods to insert logging statements in the beginning and the end of the method, containing the method name, arguments and return value. You can override default behavior by giving parameters to the annotation, e.g. @TraceEntryExit(logReturnValue = false).

You can also annotate classes/traits/objects to handle all their methods (except for trivial val/var getters) at once, using @SkipTracing on methods you want to skip and @TraceEntryExit to override settings for a specific method.

SLF4J and Log4j2 are supported.

Project Statistics

Sourcerank 2
Repository Size 3.91 KB
Stars 0
Forks 0
Watchers 1
Open issues 0
Dependencies 0
Contributors 1
Tags 0
Created
Last updated
Last pushed

Top Contributors See all

Alexey Romanov

Something wrong with this page? Make a suggestion

Last synced: 2016-06-19 16:52:48 UTC

Login to resync this repository