explain ledger definition

The principal book or computer file for recording and totaling