Comments (8)
What's the big difference between these two?
from chocolateygui.
Log4net had been dead for a few years, while nlog is being actively developed. Lately log4net has come back alive but the signed their assemblies and made a mess of the versioning.
This.log is an easy way to include logging in your code since it no longer needs you to add private ILog log = ... to every class. You can just do this.Log.Debug("...") and it will pick the classname from that.
from chocolateygui.
Okay, that's good to know.
from chocolateygui.
Thinking about this, and having not looked too closely at the code yet, do we need to abstract this into an interface, and then use the IoC Container to provide a specific instance on the interface, rather than taking a direct dependency on a specific logging framework?
from chocolateygui.
No, this.log abstracts it away for you. No need to inject since it is an extension method.
from chocolateygui.
Cool, I really need to check out this package :-)
from chocolateygui.
This is my current nlog config for rollingfileappender.
<nlog>
<targets>
<target name="file" type="File" fileName="${basedir}/logs/chocolateygui_${level}.log" layout="${longdate} ${threadid} [${level:uppercase=true}] ${logger} ${message}" archiveFileName="${basedir}/logs/chocolateygui_${level}.{#}.log" archiveAboveSize="1048576" archiveNumbering="Sequence" maxArchiveFiles="10" concurrentWrites="true" keepFileOpen="false" encoding="iso-8859-2" />
</targets>
<rules>
<logger name="*" minlevel="Debug" writeTo="file" />
</rules>
</nlog>
from chocolateygui.
Hold on a minute...
Where are the other 20 odd lines of XML that is normally required?!? :-P
from chocolateygui.
Related Issues (20)
- Exit code 1603 when trying to install chocolateygui 1.1.0 HOT 11
- Configure Chocolatey GUI to prompt for repository credentials like the Choco CLI HOT 1
- Unhandled Exception with GUI despite multiple un- and re-installs HOT 4
- Provide a way to ignore HttpCache when retrieving packages
- Make the package view for remote sources and This PC source consistent
- Add feature to automatically refresh the view on install, upgrade, reinstall or uninstall
- Add clearer messaging when downgrading a package HOT 1
- Failed to start application. HOT 6
- Related to #112 HOT 1
- Changes to Queries for the Chocolatey Community Repository
- COMException HRESULT 0x80072EE4 when trying to view __some__ package's details HOT 11
- Replace console view with log capture and view
- Raise minimum Chocolatey.lib/Chocolatey CLI version to 2.2.0 or greater
- Error while running chocolateyInstall.ps1 HOT 4
- More than 20 software titles on the Chocolatey GUI
- Ability to hide installed items in "chocolatey" tab HOT 2
- Add ability to show/hide the `Install Advanced` button
- Update the Copyright in the NOTICE File
- Upgrade FireFox fails without error message
- Loading is insanely slow (minutes)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chocolateygui.