log4net - FileAppender writing new entries at the beginning of file
问题 Is is possible to configure FileAppender in log4net to add new entries at the beginning of log file? Currently it is adding entries at the end and reading newest entries requires scrolling whole log down. It would be more comfortable to read from the beginning. 回答1: I don't know if that option is available in log4net (I wouldn't think so), but even if it's available I would advice against using it. Appending to a file is a quite cheap operation. The bytes are just added to the end of the file