Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 AdoNetAppender 记录到 SQL Server 数据库。它工作正常;但是,我想添加一些自定义参数。我见过如下方法:
log4net.GlobalContext.Properties["MyColumn"] = "MyValue";
但是,当我尝试做同样的事情时,我收到以下消息:
Cannot access internal class 'GlobalContext' here.
我究竟做错了什么?