fixed a bug in logging factory
added INewSessionHandler service interface