more complex logging example
updated documentation