add logs/warning API
add unpaired logs API
move unpaired_logs implementation into Log model