Log service code improved

Some log service code improved.