Treatement of logs (incomplete)