Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maikebing/log4net.appender.socketappender


https://github.com/maikebing/log4net.appender.socketappender

Last synced: 20 days ago
JSON representation

Awesome Lists containing this project

README

        

# SocketAppender Readme

Config in code:
` log4net.GlobalContext.Properties["HostIP"] = System.Net.Dns.GetHostAddresses(System.Net.Dns.GetHostName()).FirstOrDefault(a => a.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork).ToString(); `
` log4net.GlobalContext.Properties["Version"] = System.Reflection.Assembly.GetEntryAssembly().GetName().Version.ToString(4); `
` log4net.GlobalContext.Properties["AppName"] = System.Reflection.Assembly.GetEntryAssembly().GetName().Name; `
` log4net.GlobalContext.Properties["AppFullName"] = Assembly.GetEntryAssembly().GetCustomAttribute()?.Description; `

Config in Xml

`
` `
` `
` `
` `
` `
`
` `
` `
` `
` `
` `

`
`