You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you please help me out once again. Is there a way to use build in lib ConsoleOutput in my own modules? I would like to monitor long proccess and print out some logs during the process.
Thank you
The text was updated successfully, but these errors were encountered:
The print and printLn functions are already available to all Mond modules.
Do you maybe mean you want to call the same functions from your own C# library? There's no way to get one IMondLibrary from another but you can configure your library to use the same TextWriter as the ConsoleOutputLibrary.
state.Libraries.Configure(libs =>{varconsole= libs.Get<ConsoleOutputLibrary>(); console.Out = System.Console.Out;// can change to something elsevarotherLibrary= libs.Get<MyCustomLibrary>(); otherLibrary.Out = console.Out;// pass your library the same output location});
Then you can use the same TextWriter from your C# library code.
HI @Rohansi , me again :)
Can you please help me out once again. Is there a way to use build in lib ConsoleOutput in my own modules? I would like to monitor long proccess and print out some logs during the process.
Thank you
The text was updated successfully, but these errors were encountered: