Simplify Logger.path accessor

It is based on QueryLogger.path accessor.