I am implementing an application with the Jsch library from JCraft, which is a Java implementation for ssh.
This library has a Logger interface which describes a log function as following
public void log(int level, String message);
Is there any way to implement it with something like this?
public void log(int level, String message)
{
StackTraceElement trace = getTrace();
LOGGER.log( trace, level, message);
}