log: add *Depth function for log wrapping. This makes it possible for other packages to wrap the log package.