Fix legacy logger issue, add stackData() in debugbar logger