Currently, the trailer init happens with different callbacks and context being registered for the trailer and log_register() using those registered APIs. What this task is for is to unify the APIs for the trailer and log register into something like log_register_with_trailer().