You don't sign your name in the book you are taking. That wouldn't leave a record that you had it. You'd have the book, so you'd have your signature. If you never brought it back,no one would know who had it.
But in practice, no one ever signs anything anymore. It's all on the computer. They scan my library card, then scan the books I'm taking out, and the computer keeps track of who has which books.