Clearing error logs confirmed to have banned at least one user according to this
thread if you read the red box. Upon further investigation, he had submitted error logs that would not be generated on an unhacked console and when those error reports were not sent the next time he connected online, Nintendo confirmed this was the reason he was banned. I'd also like to point out that clearing error logs on 5.X is not recommended according to a very well-known and trusted hacker.
https://twitter.com/SciresM/status/1011321806207107072In fact, it may have even gotten another user banned because the only other action he performed was homebrew meaning error logs may have contributed to his ban. Lastly, many people have not been banned for hacks deemed unsafe by the community such as LayeredFS and SX OS. Not to mention that Nintendo usually bans in waves so while someone is not banned now, they may be banned in the future. As always, exercise extreme caution when clearing your error logs.