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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:38:19+00:00 2026-05-31T21:38:19+00:00

I have a sln, where a consile application is the starter of thr solution.

  • 0

I have a sln, where a consile application is the starter of thr solution.

How is it possible to log from library project to the console?

(I mean the dll project propapbly don’t allow that,

as it is not always run by the console application. Sometimes by other framework, no?)

  • 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-05-31T21:38:20+00:00Added an answer on May 31, 2026 at 9:38 pm

    It is technically possible for any code to use the System.Console class to write to the console. However, it is not good form for a library to do this for a number of reasons, including:

    • writing to the console is relatively expensive because a process-wide lock is required for synchronization purposes
    • writing to the console from a library will likely annoy anyone consuming that library from a console application. It would likely make the library such a hindrance that it would not be used in such a context

    Instead, you would usually use a logging abstraction such as that provided by System.Diagnostics.TraceSwitch or by a logging library like log4net. Then you can configure the application to redirect logging statements to the console, another file, a database, or whatever you like really.

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

Sidebar

Related Questions

MSBuild 3.5 I have the following project structure: trunk/MainSolution.sln trunk/Build/MyBuild.Proj trunk/Library/... trunk/etc... So far,
I have a solution sln, with 50 projects (vbproj, csproj, and setup project). I
I have a .sln solution file that references a .csproj project file that has
I have a main project directory with the following contents: SubDirectory (Directory) Project.sln (Solution
I have a single un-managed C++ console-app solution (.sln) with two projects (.vcproj) both
I have a Silverlight-based solution (SLN) with many projects. This application has been deployed
i have c# library project. i add it (library.sln) as a existing project to
We have 3 years old solution (.sln) with about 20 projects (.csproj). It is
Is it possible to use VSS 2005 with VS2005 and not have the .sln
I have a dll-type project that contains MSTest integration tests. On my machine 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.