T
Tim Smith
Hi,
I want a centralized log file on the server which does not need the
overhead of being stored in the database but which can be quickly
written to and read from by a server process.
Generally there will be 4-6 fields with one being the message which
could be fairly long (up to 1K). I would likely like to have a fixed
number of records (or fixed size). So lets say 10,000 records - each
with a 1K maximum if I do fixed record size or 10M max for variable
size.
What is they best way to do this in C#? I need to be able to pull out
a range of records (say over a date range) or that match a particular
field. Should I be keeping this in memory - i.e. a memory mapped file
(how do I set that up) or should I use an object which I save to file?
What do you think?
thanks
I want a centralized log file on the server which does not need the
overhead of being stored in the database but which can be quickly
written to and read from by a server process.
Generally there will be 4-6 fields with one being the message which
could be fairly long (up to 1K). I would likely like to have a fixed
number of records (or fixed size). So lets say 10,000 records - each
with a 1K maximum if I do fixed record size or 10M max for variable
size.
What is they best way to do this in C#? I need to be able to pull out
a range of records (say over a date range) or that match a particular
field. Should I be keeping this in memory - i.e. a memory mapped file
(how do I set that up) or should I use an object which I save to file?
What do you think?
thanks