Saving log data using a disk system as primary cache and a tape library as secondary cache