fix PerThreadResolver.cs, add logconsole template