Allow to control stacktrace frame when logging.