├── examples ├── .vs │ ├── Examples │ │ └── v15 │ │ │ ├── sqlite3 │ │ │ ├── db.lock │ │ │ └── storage.ide │ │ │ └── Server │ │ │ └── sqlite3 │ │ │ ├── db.lock │ │ │ └── storage.ide │ └── restore.dg ├── SimpleDotnetcoreWebApplication │ ├── wwwroot │ │ ├── js │ │ │ ├── site.min.js │ │ │ └── site.js │ │ ├── favicon.ico │ │ ├── lib │ │ │ ├── bootstrap │ │ │ │ ├── dist │ │ │ │ │ ├── fonts │ │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ │ │ ├── js │ │ │ │ │ │ └── npm.js │ │ │ │ │ └── css │ │ │ │ │ │ └── bootstrap-theme.min.css.map │ │ │ │ ├── .bower.json │ │ │ │ └── LICENSE │ │ │ ├── jquery │ │ │ │ ├── .bower.json │ │ │ │ └── LICENSE.txt │ │ │ ├── jquery-validation │ │ │ │ ├── .bower.json │ │ │ │ └── LICENSE.md │ │ │ └── jquery-validation-unobtrusive │ │ │ │ ├── .bower.json │ │ │ │ └── jquery.validate.unobtrusive.min.js │ │ ├── css │ │ │ ├── site.min.css │ │ │ └── site.css │ │ └── _references.js │ ├── .bowerrc │ ├── Views │ │ ├── _ViewStart.cshtml │ │ ├── Home │ │ │ ├── About.cshtml │ │ │ └── Contact.cshtml │ │ ├── _ViewImports.cshtml │ │ └── Shared │ │ │ ├── Error.cshtml │ │ │ └── _Layout.cshtml │ ├── bower.json │ ├── appsettings.json │ ├── web.config │ ├── Program.cs │ ├── bundleconfig.json │ ├── Properties │ │ └── launchSettings.json │ ├── Log4NetLoggerProvider.cs │ ├── Log4NetAspExtensions.cs │ ├── Controllers │ │ └── HomeController.cs │ ├── SimpleDotnetcoreWebApplication.csproj │ ├── Log4NetAdapter.cs │ └── Startup.cs ├── UpgradeLog.htm ├── Backup │ ├── global.json │ ├── SimpleDotnetcoreConsoleApplicationUdpPackage │ │ ├── project.json │ │ └── SimpleDotnetcoreConsoleApplicationUdpPackage.xproj │ ├── SimpleDotnetcoreConsoleApplicationAmqpPackage │ │ ├── project.json │ │ └── SimpleDotnetcoreConsoleApplicationAmqpPackage.xproj │ ├── SimpleDotnetcoreConsoleApplicationHttpPackage │ │ ├── project.json │ │ └── SimpleDotnetcoreConsoleApplicationHttpPackage.xproj │ ├── SimpleDotnetcoreConsoleApplication │ │ ├── project.json │ │ └── SimpleDotnetcoreConsoleApplication.xproj │ └── SimpleDotnetcoreWebApplication │ │ ├── SimpleDotnetcoreWebApplication.xproj │ │ └── project.json ├── JSNLogDemo_Log4Net │ ├── Logs │ │ ├── log.txt │ │ └── log.txt.2017-02-28 │ ├── Global.asax │ ├── Controllers │ │ └── HomeController.cs │ ├── Global.asax.cs │ ├── App_Start │ │ ├── RouteConfig.cs │ │ └── JSNLogConfig.cs │ ├── scripts │ │ └── jsnlogdemo.js │ ├── Views │ │ ├── Home │ │ │ └── Index.cshtml │ │ └── web.config │ ├── Web.Debug.config │ ├── Web.Release.config │ └── Properties │ │ └── AssemblyInfo.cs ├── RandomSentence │ ├── Resources.resources │ ├── Resources │ │ ├── SeamlessMetal.jpg │ │ ├── questionwords.txt │ │ ├── syntax.txt │ │ ├── pronouns.txt │ │ ├── prepositions.txt │ │ └── adverbs.txt │ ├── RandomSentenceForm.resources │ ├── Properties │ │ ├── Resources.resources │ │ ├── Settings.settings │ │ ├── Settings.Designer.cs │ │ ├── AssemblyInfo.cs │ │ └── Resources.Designer.cs │ ├── Program.cs │ ├── packages.config │ ├── Resources.Designer.cs │ ├── RandomSentenceForm.Designer.cs │ └── RandomSentenceForm.cs ├── SimpleConsoleApplicationUdpPackage │ ├── packages.config │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── App.config │ └── SimpleConsoleApplicationUdpPackage.csproj ├── SimpleConsoleApplicationAmqpPackage │ ├── packages.config │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── App.config │ └── SimpleConsoleApplicationAmqpPackage.csproj ├── SimpleConsoleApplicationHttpPackage │ ├── packages.config │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ └── App.config ├── SimpleDotnetcoreConsoleApplication │ ├── SimpleDotnetcoreConsoleApplication.csproj │ ├── Properties │ │ └── AssemblyInfo.cs │ └── Program.cs ├── SimpleConsoleApplicationCorePackage │ ├── Program.cs │ ├── packages.config │ ├── Properties │ │ └── AssemblyInfo.cs │ └── App.config ├── SimpleDotnetcoreConsoleApplicationUdpPackage │ ├── SimpleDotnetcoreConsoleApplicationUdpPackage.csproj │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Program.cs │ └── log4net.config ├── SimpleDotnetcoreConsoleApplicationAmqpPackage │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── SimpleDotnetcoreConsoleApplicationAmqpPackage.csproj │ ├── Program.cs │ └── log4net.config ├── SimpleDotnetcoreConsoleApplicationHttpPackage │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── SimpleDotnetcoreConsoleApplicationHttpPackage.csproj │ ├── Program.cs │ └── log4net.config ├── SimpleConsoleApplication │ ├── packages.config │ ├── Properties │ │ └── AssemblyInfo.cs │ └── Program.cs └── SimpleConsoleApplicationLoggingEvent │ ├── packages.config │ ├── Properties │ └── AssemblyInfo.cs │ ├── Program.cs │ └── App.config ├── excludeInternalize.txt ├── icon.png ├── gelf4net_icon.pdn ├── src ├── Gelf4Net │ ├── Gelf4Net.snk │ ├── TypeForwarders.cs │ └── Gelf4Net.csproj ├── Gelf4Net.Core │ ├── Gelf4Net.Core.snk │ ├── ObjectRenderer │ │ └── GelfRenderer.cs │ ├── Util │ │ ├── BufferedSenderOptions.cs │ │ ├── TypeConverters │ │ │ └── IPAddressConverter.cs │ │ └── BufferedLogSender.cs │ ├── Gelf4Net.Core.csproj │ ├── Internals.cs │ ├── Extensions.cs │ └── GelfMessage.cs ├── Gelf4Net.AmqpAppender │ ├── Gelf4Net.AmqpAppender.snk │ ├── TypeForwarders.cs │ ├── Gelf4Net.AmqpAppender.csproj │ └── AsyncGelfAmqpAppender.cs ├── Gelf4Net.HttpAppender │ ├── Gelf4Net.HttpAppender.snk │ ├── TypeForwarders.cs │ ├── Gelf4Net.HttpAppender.csproj │ ├── AsyncGelfHttpAppender.cs │ └── GelfHttpAppender.cs ├── Gelf4Net.UdpAppender │ ├── Gelf4Net.UdpAppender.snk │ ├── TypeForwarders.cs │ ├── Gelf4Net.UdpAppender.csproj │ └── AsyncGelfUdpAppender.cs └── Directory.Build.props ├── .config └── dotnet-tools.json ├── nuget.config ├── .editorconfig ├── test └── Gelf4net.Tests │ ├── Gelf4net.Tests.csproj │ └── GelfUdpAppenderTests.cs ├── .gitignore └── LICENSE.md /examples/.vs/Examples/v15/sqlite3/db.lock: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /excludeInternalize.txt: -------------------------------------------------------------------------------- 1 | gelf4net.Appender.* -------------------------------------------------------------------------------- /examples/.vs/Examples/v15/Server/sqlite3/db.lock: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/SimpleDotnetcoreWebApplication/wwwroot/js/site.min.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjchiw/gelf4net/HEAD/icon.png -------------------------------------------------------------------------------- /gelf4net_icon.pdn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjchiw/gelf4net/HEAD/gelf4net_icon.pdn -------------------------------------------------------------------------------- /examples/SimpleDotnetcoreWebApplication/.bowerrc: -------------------------------------------------------------------------------- 1 | { 2 | "directory": "wwwroot/lib" 3 | } 4 | -------------------------------------------------------------------------------- /examples/SimpleDotnetcoreWebApplication/wwwroot/js/site.js: -------------------------------------------------------------------------------- 1 | // Write your Javascript code. 2 | -------------------------------------------------------------------------------- /examples/UpgradeLog.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjchiw/gelf4net/HEAD/examples/UpgradeLog.htm -------------------------------------------------------------------------------- /src/Gelf4Net/Gelf4Net.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjchiw/gelf4net/HEAD/src/Gelf4Net/Gelf4Net.snk -------------------------------------------------------------------------------- /examples/SimpleDotnetcoreWebApplication/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /examples/Backup/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "sdk": { 3 | "version": "1.0.0-preview2-1-003177" 4 | } 5 | } -------------------------------------------------------------------------------- /examples/JSNLogDemo_Log4Net/Logs/log.txt: -------------------------------------------------------------------------------- 1 | 2021-02-18 19:53:21,350 | INFO | serverlogger | info server log message 2 | -------------------------------------------------------------------------------- /src/Gelf4Net.Core/Gelf4Net.Core.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjchiw/gelf4net/HEAD/src/Gelf4Net.Core/Gelf4Net.Core.snk -------------------------------------------------------------------------------- /examples/RandomSentence/Resources.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjchiw/gelf4net/HEAD/examples/RandomSentence/Resources.resources -------------------------------------------------------------------------------- /examples/.vs/Examples/v15/sqlite3/storage.ide: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjchiw/gelf4net/HEAD/examples/.vs/Examples/v15/sqlite3/storage.ide -------------------------------------------------------------------------------- /examples/.vs/restore.dg: -------------------------------------------------------------------------------- 1 | #:C:\Users\jjchiw\Documents\GitHub\gelf4net\examples\SimpleDotnetcoreWebApplication\SimpleDotnetcoreWebApplication.xproj 2 | -------------------------------------------------------------------------------- /examples/JSNLogDemo_Log4Net/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="JSNLogDemo_Log4Net.MvcApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /examples/RandomSentence/Resources/SeamlessMetal.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjchiw/gelf4net/HEAD/examples/RandomSentence/Resources/SeamlessMetal.jpg -------------------------------------------------------------------------------- /src/Gelf4Net.AmqpAppender/Gelf4Net.AmqpAppender.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjchiw/gelf4net/HEAD/src/Gelf4Net.AmqpAppender/Gelf4Net.AmqpAppender.snk -------------------------------------------------------------------------------- /src/Gelf4Net.HttpAppender/Gelf4Net.HttpAppender.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjchiw/gelf4net/HEAD/src/Gelf4Net.HttpAppender/Gelf4Net.HttpAppender.snk -------------------------------------------------------------------------------- /src/Gelf4Net.UdpAppender/Gelf4Net.UdpAppender.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjchiw/gelf4net/HEAD/src/Gelf4Net.UdpAppender/Gelf4Net.UdpAppender.snk -------------------------------------------------------------------------------- /examples/.vs/Examples/v15/Server/sqlite3/storage.ide: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjchiw/gelf4net/HEAD/examples/.vs/Examples/v15/Server/sqlite3/storage.ide -------------------------------------------------------------------------------- /examples/RandomSentence/RandomSentenceForm.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjchiw/gelf4net/HEAD/examples/RandomSentence/RandomSentenceForm.resources -------------------------------------------------------------------------------- /src/Gelf4Net.AmqpAppender/TypeForwarders.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.CompilerServices; 2 | 3 | [assembly:TypeForwardedTo(typeof(Gelf4Net.Layout.GelfLayout))] 4 | -------------------------------------------------------------------------------- /src/Gelf4Net.HttpAppender/TypeForwarders.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.CompilerServices; 2 | 3 | [assembly:TypeForwardedTo(typeof(Gelf4Net.Layout.GelfLayout))] 4 | -------------------------------------------------------------------------------- /src/Gelf4Net.UdpAppender/TypeForwarders.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.CompilerServices; 2 | 3 | [assembly:TypeForwardedTo(typeof(Gelf4Net.Layout.GelfLayout))] 4 | -------------------------------------------------------------------------------- /examples/RandomSentence/Properties/Resources.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjchiw/gelf4net/HEAD/examples/RandomSentence/Properties/Resources.resources -------------------------------------------------------------------------------- /examples/SimpleDotnetcoreWebApplication/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjchiw/gelf4net/HEAD/examples/SimpleDotnetcoreWebApplication/wwwroot/favicon.ico -------------------------------------------------------------------------------- /examples/RandomSentence/Resources/questionwords.txt: -------------------------------------------------------------------------------- 1 | Who 2 | What 3 | Where 4 | When 5 | Why 6 | How 7 | Which 8 | Wherefore 9 | Whatever 10 | Whom 11 | Whose 12 | Wherewith 13 | Whither 14 | Whence -------------------------------------------------------------------------------- /.config/dotnet-tools.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "isRoot": true, 4 | "tools": { 5 | "cake.tool": { 6 | "version": "1.0.0", 7 | "commands": [ 8 | "dotnet-cake" 9 | ] 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /examples/SimpleDotnetcoreWebApplication/Views/Home/About.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "About"; 3 | } 4 |
Use this area to provide additional information.
8 | -------------------------------------------------------------------------------- /examples/SimpleDotnetcoreWebApplication/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjchiw/gelf4net/HEAD/examples/SimpleDotnetcoreWebApplication/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /examples/SimpleDotnetcoreWebApplication/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjchiw/gelf4net/HEAD/examples/SimpleDotnetcoreWebApplication/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /examples/SimpleDotnetcoreWebApplication/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjchiw/gelf4net/HEAD/examples/SimpleDotnetcoreWebApplication/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /examples/SimpleDotnetcoreWebApplication/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using SimpleDotnetcoreWebApplication 2 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 3 | @inject Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration TelemetryConfiguration 4 | -------------------------------------------------------------------------------- /examples/SimpleDotnetcoreWebApplication/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jjchiw/gelf4net/HEAD/examples/SimpleDotnetcoreWebApplication/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /examples/SimpleDotnetcoreWebApplication/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "asp.net", 3 | "private": true, 4 | "dependencies": { 5 | "bootstrap": "3.3.6", 6 | "jquery": "2.2.0", 7 | "jquery-validation": "1.14.0", 8 | "jquery-validation-unobtrusive": "3.2.6" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /examples/RandomSentence/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 |10 | Swapping to Development environment will display more detailed information about the error that occurred. 11 |
12 |13 | Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. 14 |
15 | -------------------------------------------------------------------------------- /examples/SimpleConsoleApplicationUdpPackage/Program.cs: -------------------------------------------------------------------------------- 1 | using log4net; 2 | using System; 3 | 4 | namespace SimpleConsoleApplication 5 | { 6 | class Program 7 | { 8 | protected static readonly ILog log = LogManager.GetLogger(typeof(Program)); 9 | 10 | static void Main(string[] args) 11 | { 12 | log4net.Config.XmlConfigurator.Configure(); 13 | 14 | Console.WriteLine("Write a sentence, q to quit"); 15 | 16 | var text = Console.ReadLine(); 17 | 18 | while (text != "q") 19 | { 20 | log.Debug(String.Format("Randomizer Sentence: {0}", text)); 21 | Console.WriteLine("Sent {0}", text); 22 | 23 | text = Console.ReadLine(); 24 | 25 | Console.WriteLine("Sent"); 26 | } 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /examples/RandomSentence/Resources/pronouns.txt: -------------------------------------------------------------------------------- 1 | all 2 | another 3 | any 4 | anybody 5 | anyone 6 | anything 7 | both 8 | each 9 | each other 10 | either 11 | everybody 12 | everyone 13 | everything 14 | few 15 | he 16 | her 17 | hers 18 | herself 19 | him 20 | himself 21 | his 22 | I 23 | it 24 | its 25 | itself 26 | little 27 | many 28 | me 29 | mine 30 | more 31 | most 32 | much 33 | my 34 | myself 35 | neither 36 | noone 37 | nobody 38 | none 39 | nothing 40 | one 41 | one another 42 | other 43 | others 44 | our 45 | ours 46 | ourselves 47 | several 48 | she 49 | some 50 | somebody 51 | someone 52 | something 53 | that 54 | their 55 | theirs 56 | them 57 | themselves 58 | these 59 | they 60 | this 61 | those 62 | us 63 | we 64 | what 65 | whatever 66 | which 67 | whichever 68 | who 69 | whoever 70 | whom 71 | whomever 72 | whose 73 | you 74 | your 75 | yours 76 | yourself 77 | yourselves -------------------------------------------------------------------------------- /examples/SimpleDotnetcoreWebApplication/wwwroot/css/site.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 50px; 3 | padding-bottom: 20px; 4 | } 5 | 6 | /* Wrapping element */ 7 | /* Set some basic padding to keep content from hitting the edges */ 8 | .body-content { 9 | padding-left: 15px; 10 | padding-right: 15px; 11 | } 12 | 13 | /* Set widths on the form inputs since otherwise they're 100% wide */ 14 | input, 15 | select, 16 | textarea { 17 | max-width: 280px; 18 | } 19 | 20 | /* Carousel */ 21 | .carousel-caption p { 22 | font-size: 20px; 23 | line-height: 1.4; 24 | } 25 | 26 | /* Make .svg files in the carousel display properly in older browsers */ 27 | .carousel-inner .item img[src$=".svg"] 28 | { 29 | width: 100%; 30 | } 31 | 32 | /* Hide/rearrange for smaller screens */ 33 | @media screen and (max-width: 767px) { 34 | /* Hide captions */ 35 | .carousel-caption { 36 | display: none 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /examples/SimpleDotnetcoreConsoleApplication/SimpleDotnetcoreConsoleApplication.csproj: -------------------------------------------------------------------------------- 1 |20 | Log messages are sent to server the moment this page is opened. 21 |
22 |23 | The code generating the log messages is in scripts/jsnlogdemo.js. 24 |
25 |26 | JSNLog sets the window.onerror handler when it loads, so uncaught JavaScript exceptions are sent to your server side log. 27 | However, it will only do that if window.onerror has not already been set 28 | (details). That way, if you are setting your own onerror handler, it won't override that. 29 |
30 | 31 | 32 | 33 |