Split log.go into prioritylog.go and default.go

prioritylog.go contains mechanism, default.go contains generic working
interface.