Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hard-coded in, skipDepth = 6 ,maybe some wrong ,because I can access this class from other packge #136

laomo opened this issue Aug 22, 2013 · 1 comment


Copy link

@laomo laomo commented Aug 22, 2013

protected String getTag() {
final int skipDepth = 6; // skip 6 stackframes to find the location where this was called
if (getLoggingLevel() <= Log.DEBUG) {
final StackTraceElement trace = Thread.currentThread().getStackTrace()[skipDepth];
return tag + "/" + trace.getFileName() + ":" + trace.getLineNumber() + "[" + trace.getMethodName() + "]";
return tag;

LnImpl lnImpl = new LnImpl();

when I skip 6 line, there something wrong

Copy link

@stephanenicolas stephanenicolas commented Oct 16, 2014

You should not use LnImpl directly but use Ln which is configurable via a RG module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.