Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maikebing/log4net.appender.socketappender
https://github.com/maikebing/log4net.appender.socketappender
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/maikebing/log4net.appender.socketappender
- Owner: maikebing
- Created: 2018-09-29T09:22:24.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-21T07:19:48.000Z (about 6 years ago)
- Last Synced: 2024-10-29T11:13:11.309Z (2 months ago)
- Language: C#
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
`
` `
` `
` `
` `
` `
`
` `
` `
` `
` `
` ``
`