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 LnImpl.java, skipDepth = 6 ,maybe some wrong ,because I can access this class from other packge #136

Closed
laomo opened this Issue Aug 22, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@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();
lnImpl.d("111111111111111111111");

when I skip 6 line, there something wrong

@stephanenicolas

This comment has been minimized.

Show comment
Hide comment
@stephanenicolas

stephanenicolas Oct 16, 2014

Contributor

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

Contributor

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