如何使用类似于log4net的日志库为f#设置printf样式的记录器.我有Log.Debug,Info,Warn等功能,类似于log4net中的DebugFormat或InfoFormat.我试图为我的Log类设置类型扩展,我可以调用printf样式,如Log.Debugf"%s""foo".我的通用日志功能如下所示:
let log format = Printf.kprintf (sprintf "%s") format
Run Code Online (Sandbox Code Playgroud)
我有扩展功能签名的问题,以登录我的调试功能...我尝试使用Debugf格式和调试
f# ×1