Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9061803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T15:34:44+00:00 2026-06-16T15:34:44+00:00

Does anyone know how to get Nlog’s nlogger snippet to work in Visual Studio

  • 0

Does anyone know how to get Nlog’s nlogger snippet to work in Visual Studio 2012 like it did in 2010? I don’t see anything on their forum or on the internet when googing around. Seems like something that people who use Nlog would want back.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T15:34:45+00:00Added an answer on June 16, 2026 at 3:34 pm

    Haven’t worked out how to get the real snippet installed, so I manually created a snippet to perform the same function as the original did.

    Create the file nlogger.snippet in the following folder:

    My Documents\Visual Studio 2012\Code Snippets\Visual C#\My Code Snippets
    

    The contents of the file should be as follows:

    <?xml version="1.0" encoding="utf-8"?>
    <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
        <CodeSnippet Format="1.0.0">
            <Header>
                <Title>
                    NLog Logger Snippet
                </Title>
                <Shortcut>nlogger</Shortcut>
            </Header>
            <Snippet>
                <Code Language="CSharp">
                    <![CDATA[private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger();]]>
                </Code>
            </Snippet>
        </CodeSnippet>
    </CodeSnippets>
    

    Hopefully this helps someone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Apologies for the non-programming question, but does anyone know how to get Visual Studio
Does anyone know where to get the site theme for SharePoint 2010 that microsoft
Does anyone know how to get number (or currency) format string (like ###,###,##0.00) from
Does anyone know how to get the board, like in the picture? https://podio.com/store/pack/110-demo-scrum-board?return_type=&return_id=46 Regards,
Does anyone know how to get the default gateway in a Delphi 2010 app?
I use Visual Studio 2012 and I code there simple console app. Does anyone
Does anyone know how to get to work the authentication mechanism configured using Web
Does anyone know how to get the jQuery .load() function to work concurrently? Right
Does anyone know how to get country_select to work with fields_for? https://github.com/stefanpenner/country_select It doesn't
Does anyone know how to get IntelliSense to work reliably when working in C/C++

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.