Factorize code in log class
Now test the log class
Rename private methods in abstract model