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 7734669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:18:29+00:00 2026-06-01T07:18:29+00:00

I am trying to get a logging project up and running and having difficulties

  • 0

I am trying to get a logging project up and running and having difficulties getting the network logging to work correctly. I’ve written a simple wrapper for NLog so I can have a project that I just just add to all my other projects.

I have a simple console program for testing this

class Program
{
    static void Main(string[] args)
    {
        Console.WriteLine("Testing Nlog");

        var logger = new Logger("Program");

        int index = 0;
        while (index < 1000)
        {
            Console.WriteLine("Testing Testing 1..2..3..");
            logger.Debug("Testing Testing 1..2..3..");
            index++;
            Thread.Sleep(5000);
        }

        Console.ReadLine();
    }
}

And the following configuration file

<nlog>
  <targets async="true">
    <target name="n4" xsi:type="Network" address="tcp://localhost:877"/>
    <!--<target name="logfile" xsi:type="File" fileName="file.txt" />-->
  </targets>

  <rules>
    <logger name="*" minlevel="Trace" writeTo="n4" />
    <!--<logger name="*" minlevel="Trace" writeTo="logfile" />-->
  </rules>
</nlog>

I’ve gone into my firewall and opened both udp and tcp 877 ports.

If I switch the logging to work from file it works fine however when I’m trying to use network logging and using log4view to see the logs I get nothing. I’ve tried numerous ipaddresses and hostnames to try and get this to log out.

I’ve used log4view before and it seems simple enough to create the tcp or udp receivers so I’m a little at a loss as to what’s going wrong.

If anyone can shed some light or see any mistakes I’d be most grateful

Thanks
Neil

  • 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-01T07:18:30+00:00Added an answer on June 1, 2026 at 7:18 am

    Rather than use a Network target I changed it to use a NLogViewer target instead and this did the trick

    <target name="log4view" xsi:type="NLogViewer" address="tcp://127.0.0.1:877"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get logging via the application.ini file going and I am
I'm trying to get logging enabled on my application using Fluent NHibernate and log4net.
I am trying get Struts 2 and Tiles to work and I am using
Trying to get this to work, with no luck: [DataMember] public Type ParameterType {
Trying to get a JSON output to work with jqGrid 'userdata' option. The example
I'm trying to figure out how to get log4j working in my project. I
Our project uses a macro to make logging easy and simple in one-line statements,
I'm trying to get a bare-bones example of logging going in my ASP.NET application.
We're trying to deploy our project but we can't get elmah to create the
I'm having some trouble getting log4net to work from ASP.NET 3.5. This is the

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.