Add name and plugin to mock buffers.
Use buffer_get_string in get_logger_option_name.

Wrapper handles encoding.
Check for unset log level first in get_log_level.

Avoid searching infolist if possible.
Remove empty line.