Util: optimized Slog's code

Optimized code of Slog

Signed-off-by: Eason Pu <pujl1@lenovo.com>