Merge "liblog: check loggability before formatting"