log content encoding