Click here to Skip to main content
15,904,346 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: .Net Logging Pin
TheGreatAndPowerfulOz26-Jan-17 12:12
TheGreatAndPowerfulOz26-Jan-17 12:12 
GeneralRe: .Net Logging Pin
Uwe Laas26-Jan-17 19:49
Uwe Laas26-Jan-17 19:49 
GeneralRe: .Net Logging Pin
Mehdi Gholam26-Jan-17 20:11
Mehdi Gholam26-Jan-17 20:11 
GeneralRe: .Net Logging Pin
Didjeeh26-Jan-17 20:14
Didjeeh26-Jan-17 20:14 
GeneralRe: .Net Logging Pin
SonnyHarbour26-Jan-17 21:22
SonnyHarbour26-Jan-17 21:22 
GeneralRe: .Net Logging Pin
Xmen Real 26-Jan-17 21:55
professional Xmen Real 26-Jan-17 21:55 
GeneralRe: .Net Logging Pin
Johann Gerell26-Jan-17 22:09
Johann Gerell26-Jan-17 22:09 
GeneralRe: .Net Logging Pin
BinaryReason27-Jan-17 1:40
BinaryReason27-Jan-17 1:40 
You're doing something wrong. With NLog, all you need to do is include a nlog.config file in your project, and then to log you simply do the following:

C#
static Logger _logger = LogManager.GetCurrentClassLogger();

_logger.Log(LogLevel.Info, "Your message");

"There are only 10 types of people in the world - those who know binary and those who don't."

GeneralRe: .Net Logging Pin
Marc Clifton27-Jan-17 2:22
mvaMarc Clifton27-Jan-17 2:22 
GeneralRe: .Net Logging Pin
JackPeacock27-Jan-17 2:42
professionalJackPeacock27-Jan-17 2:42 
GeneralRe: .Net Logging Pin
Michael Shoemaker27-Jan-17 2:46
Michael Shoemaker27-Jan-17 2:46 
GeneralRe: .Net Logging Pin
ScottM127-Jan-17 2:57
ScottM127-Jan-17 2:57 
GeneralRe: .Net Logging Pin
ranman2227-Jan-17 3:07
ranman2227-Jan-17 3:07 
GeneralRe: .Net Logging Pin
James Curran27-Jan-17 4:57
James Curran27-Jan-17 4:57 
GeneralRe: .Net Logging Pin
marcus obrien27-Jan-17 7:58
marcus obrien27-Jan-17 7:58 
GeneralRe: .Net Logging Pin
obermd27-Jan-17 14:30
obermd27-Jan-17 14:30 
GeneralRe: .Net Logging Pin
EbenRoux30-Jan-17 0:57
EbenRoux30-Jan-17 0:57 
Generalmust read books for dot net developer Pin
King Fisher26-Jan-17 6:39
professionalKing Fisher26-Jan-17 6:39 
GeneralRe: must read books for dot net developer PinPopular
OriginalGriff26-Jan-17 6:45
mveOriginalGriff26-Jan-17 6:45 
GeneralRe: must read books for dot net developer Pin
lopatir26-Jan-17 8:02
lopatir26-Jan-17 8:02 
GeneralRe: must read books for dot net developer Pin
Mel Padden27-Jan-17 1:47
Mel Padden27-Jan-17 1:47 
GeneralRe: must read books for dot net developer Pin
Rob Philpott26-Jan-17 6:48
Rob Philpott26-Jan-17 6:48 
GeneralRe: must read books for dot net developer Pin
King Fisher26-Jan-17 7:11
professionalKing Fisher26-Jan-17 7:11 
GeneralRe: must read books for dot net developer Pin
littleGreenDude26-Jan-17 7:50
littleGreenDude26-Jan-17 7:50 
GeneralRe: must read books for dot net developer Pin
Maximilien26-Jan-17 6:49
Maximilien26-Jan-17 6:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.