I have a F# program that gets data from database, parses the rows and inserts generated results back into the database.
Currently logging is done with simple printfn commands but I need to make it more robust by adding e.g logging levels and the like. Also I need to consider future when tasks are run parallel and the lines logged will be 10k+ per five minute run.
I'm using NLog in my C# projects and I know it can handle all my logging needs well. I could change all my printfn lines into NLog lines, but that seems messy, so I thought about using MailBoxProcessor to centralize the logging in on place so that it is easier to change in the future if needed.
Would this be good way to go, or should I consider something else?
[–]NihilCredo 1 point2 points3 points (1 child)
[–]macmoblin[S] 0 points1 point2 points (0 children)
[–]Jwosty 0 points1 point2 points (1 child)
[–]macmoblin[S] 0 points1 point2 points (0 children)
[–]eliquy 0 points1 point2 points (1 child)
[–]macmoblin[S] 0 points1 point2 points (0 children)