implement some primary members of ConsoleLogger (and FileLogger).