[ticket/12150] Use log service instead of add_log() function

PHPBB3-12150