Here’s a short tutorial on how to use log4net in C# 1. Get log4net from the apache website or use NuGet to include in your project it 2. Add the Appender section to your app.config. The following code uses a file for the logging: <configuration> <configSections> <section name=”log4net” type=”log4net.Config.Log4NetConfigurationSectionHandler,Log4net”/> </configSections> <log4net> <root> <level value=”DEBUG” /> <appender-ref ref=”LogFileAppender” /> </root> <appender name=”LogFileAppender” type=”log4net.Appender.RollingFileAppender” > <param name=”File” value=”log-file.txt” /> <param name=”AppendToFile” value=”true” /> <rollingStyle value=”Size” /> <maxSizeRollBackups value=”10″ /> <maximumFileSize value=”10MB” /> <staticLogFileName value=”true” /> <layout type=”log4net.Layout.PatternLayout”> <param name=”ConversionPattern” value=”%date [%thread]…
Search Results for: tutorial
APIs with Entity Framework Core: PUT
Continue the tutorial about APIs with Entity Framework Core and in particular how to implemente the PUT to update a record with dependencies.
Deep linking for NET8 MAUI
In this post everything you have to do to implement deep linking for NET8 MAUI for mobile and desktop applications
Hogwarts Legacy all house tokens locations
Hogwarts Legacy all house tokens Locations, also known as Daedalian Keys. Finding all House Tokens is required to complete The Daedalian Keys
Getting started with Python
Python is a high-level, general-purpose and a very popular programming language that lets you work quickly and integrate systems effectively
Stripe Connect Express with Blazor
In my previous post titled Create Stripe Webhooks Receiver I created a webhook and now I want to explore how to use Stripe Connect Express with Blazor. What is Stripe Connect? Stripe Connect allows you to develop marketplace and platform applications that can accept money and pay out to connected Stripe accounts. For example, a platform like Lyft has the ability to receive payments from a customer, retain a percentage as a platform fee, and then pay out the difference to the customer’s driver. Those drivers would all be considered…
Create Stripe webhooks receiver
I create a Stripe webhooks receiver for ASP.NET Core and Blazor. This is the first post of 4 where I show the full implementation.
Create documentation with Docsify and GitHub Pages
Documentation is an essential part of making any project useful to users. Here how to Create documentation with Docsify and GitHub Pages
Remote debug Android devices
In this post, I show you how to remote debug live content on an Android device from your Windows, Mac, or Linux computer. Easy peasy
Uploading files in ASPNET Core
Uploading files in ASP.NET Core is largely the same as standard full framework MVC but now we can stream large files. Here I explain how
Upload/Download Files using HttpClient
In this new post, I show you how to upload/download files using HttpClient in C# and .NET Core. Creating a new version of the Markdown Editor component for Blazor, I face some issues with the file upload. So, I was working to find a solution and now I can tell you how to do it. First, I will take a look at how to send multipart MIME data to a Web API using HttpClient. We will create two applications to demonstrate the data transfer between the client side and the server side. The server-side…
Handling exceptions globally with NET6
In this new post, I like to show how handling exceptions globally with .NET6 adding a single class using a generic exception middleware
Barcode Scanner in Swift on iOS
In this new post, I’m going to show how to implement a barcode scanner in Swift on iOS to read barcode from any kind of products
Universal PredicateBuilder for Expression
In this new short post, I’ll show you how to create a universal PredicateBuilder for Expression in C# to merge 2 or more expressions with Linq
Create a LogicApp to use CosmosDB
I’m going to explain how to create a LogicApp to use CosmosDB in Azure based on a common scenario. I’ll show other solution in the next posts
Windows 11 leak reveals new UI
Today, Windows 11 leak reveals new UI, Start menu, and more for the next generation of Windows. We are waiting the Windows show on June 24th.
Use LocalStorage with Blazor WebAssembly
In this post I want to show how to use LocalStorage with Blazor WebAssembly to save data in the storage of the browser
Adding an API using ASP.NET Core
Adding an API using ASP.NET Core is the subject of this new post related to explain how to implement a project in a clean architecture
Microsoft Presenter Coach for PowerPoint
Microsoft Presenter Coach for PowerPoint can now help you practice presentations almost anywhere — no humans required
Datatables in ASP.NET Core Server-Side
We will learn how to use Datatables in ASP.NET Core with Server-Side Processing with a simple real-world implementation to understand better
New View Components in AdminLTE project
I continue to add more features and in particular new view components in AdminLTE project built with ASP.NET Core
Create View Components in ASP.NET Core
In this post, I want to show how creating View Components in ASP.NET Core is simple and powerful and allows us to have reusable components.
Start with Docker
I want to help to start with Docker for the basis. I’m starting to learn Docker, then the following posts are my study step-by-step
Dropdown list in Excel
The tutorial shows how to create dropdown list in Microsoft Excel depending on another cell by using new dynamic array functions.
Features for AdminLTE with ASP.NET Core
I want to add new cool features for AdminLTE with ASP.NET Core. The source code of this template is on GitHub #aspnetcore #adminlte #mvc #gravatar #breadcrumbs #navigation