Logger suported STL string
Refactored code