An electronic lock or digital lock is a device which has an electronic control assembly attached to it. They are provided with an access control system. The advantages of an electric lock connected to an access control system include: key control, where keys can be added and removed without re-keying the lock cylinder; fine access control, where time and place are factors; and transaction logging, where activity is recorded.