Complete implementation of loglib