[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Is there a LOG-ENTRY-TYPE to make an AppServer agent redirect .Net System.Console:Write

  • Thread starter Thread starter Laura Stern
  • Start date Start date
Status
Not open for further replies.
L

Laura Stern

Guest
Ah, I see. Though again, logentrytypes is not meant to control where output goes, just what is output. This would have to be done a different way. And of course, there are other ways to write to a file, e.g., OUTPUT TO or since you're using .NET, use a System.IO.StreamWriter, etc. Or to avoid having to have an object instance, you can use the static method: System.IO.File.WriteAllText("C:\TestFolder\WriteText.txt", text); This will open the file, write and close the file.

Continue reading...
 
Status
Not open for further replies.
Back
Top