first test with templated-based logrecord
mem lost free version
added Message class, leak free version