net.sourceforge.acelogger.location.gatherer
Class FullLocationGatherer
java.lang.Object
net.sourceforge.acelogger.location.gatherer.BaseLocationGatherer
net.sourceforge.acelogger.location.gatherer.FullLocationGatherer
- All Implemented Interfaces:
- Identifiable, LocationGatherer
public class FullLocationGatherer
- extends BaseLocationGatherer
An implementation of LocationGatherer that discovers all available information of the caller.
- Since:
- 1.0.0
- Version:
- 1.0.0
- Author:
- Zardi (https://sourceforge.net/users/daniel_zardi)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FullLocationGatherer
public FullLocationGatherer(String identifier)
- Constructs a FullLocationGatherer with the supplied identifier and a UserCodeFrameResolver as
it's resolver.
- Parameters:
identifier
- A string that identifies this gatherer.- Since:
- 1.0.0
FullLocationGatherer
public FullLocationGatherer(String identifier,
CodeFrameResolver frameResolver)
- Constructs a FullLocationGatherer with the supplied identifier and resolver.
- Parameters:
identifier
- A string that identifies this gatherer.frameResolver
- The resolver that should be used to generate caller information.- Since:
- 1.0.0
getCallLocation
public LogEventLocation getCallLocation(Thread currentThread)
- Obtains the log call location, such as the package, class and method names.
- Parameters:
currentThread
- The thread that originated the call.
- Returns:
- A logCallLocation with information of the caller location.
Copyright © 2007-2010 The AceLogger Team. All Rights Reserved.