lib: log offset