Using TAG for logging

Good idea from Daniel.