Coder Social home page Coder Social logo

Comments (4)

wiiznokes avatar wiiznokes commented on September 16, 2024

work around, while not being perfect (only working on debug target):

#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

from env_logger.

epage avatar epage commented on September 16, 2024

So if I understand correctly, windows_subsystem = "windows" means no stdout / stderr is created.

Maybe I don't do enough Windows programming lately but I would assume that setting this is a fairly advanced use case, meaning

  • It would be uncommon enough that documenting might make things more confusing
  • There is a certain level of base understanding expected when using this
    • Obviously, this fails since you are here but wanting to lay out my assumptions so I can better understand why I'm wrong.

Could you help me in finding where my understanding is wrong?

from env_logger.

wiiznokes avatar wiiznokes commented on September 16, 2024

I only use this so that no console pops when launching my program (i'm doing a graphical interface).
AFIK, it's the only ways to have this behavior on Windows, so every graphical program will want to use this i think. For example, i know Tauri use it in it's examples

It would be uncommon enough that documenting might make things more confusing

I understand that, it's as you want, maybe having one issue is enought

from env_logger.

epage avatar epage commented on September 16, 2024

Ah, guis, so this isn't just an advanced issue.

from env_logger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.