Set log level from outside.