Skip to content

Be able to have a LogHandler from wrapped languages #2489

@Mizux

Description

@Mizux

extract from #2245 for the LogHandler part

ToDo list

  • Python support:
    • Be able to control log handler from Python
  • Java support:
    • Be able to control log handler from Java
  • .Net support:
    • Be able to control log handler from .Net

Devnote:

.NET

According to Ozzah:

I suggest Solver.EnableOutput() needs an overhaul. Specifically, I may not want to write directly to the console and I may not want to write it to a file. In C#, it's common to use ILogger to record information, either to screen, file, database, Kafka, etc.
In C#, when we create and start a Process, we can override the Process.StandardInput, Process.StandardOutput, and Process.StandardError with our own StreamReader and StreamWriter implementations.
I think it would be useful to be able to supply a StreamWriter to Solver.EnableOutput(), and that way it's up to us to decide what to do with that output.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions