klogcat: check if the attachment exceeds limit

Signed-off-by: Fudong Bai <fudongbai@gmail.com>