primitive logging functionality