Kodi log my watching history

Is there a way for kodi to log all my watched files, so that i can use logfile later ?

You need to be a bit more clear what you mean? Generally Kodi will mark every movie (in your library) as “watched” when you finished watching the movie.

I meant kodi to save my movies in a database, so that even if i watch and delete a movie, the movie still remain in the separate database.

Try using the trakt.tv addon and a free trakt account for this. It’s unlikely that Kodi would ever keep library db info on any media that isn’t available to it.

Amazing services from these guys… i followed the instructions found here Thanks ActionA!
now i need to set up flexget to download from my trakt account and all will be perfect!