log and library