split message head by length and log level