Go Back   RunUO - Ultima Online Emulation > RunUO > Core Modifications > Subsystems

Subsystems This forum is for modifications to the various subystem code of RunUO

Reply
 
Thread Tools Display Modes
Old 07-06-2007, 08:48 AM   #1 (permalink)
Forum Expert
 
Ohms_Law's Avatar
 
Join Date: Sep 2004
Age: 37
Posts: 1,006
Default MultiTextWriter

One simple question: Why?

...is this a leftover from the .NET 1.0 timeframe or something? That's the only logical explaination that I can come up with...
The current Console class seems fine for writing text to the console to me. So, I'm just curious as to why the MultiTextWriter class exists in RunUO still.
Ohms_Law is offline   Reply With Quote
Old 07-06-2007, 12:30 PM   #2 (permalink)
ConnectUO Creator
 
Jeff's Avatar
 
Join Date: Jan 2004
Age: 28
Posts: 4,891
Default

Quote:
Originally Posted by Ohms_Law View Post
One simple question: Why?

...is this a leftover from the .NET 1.0 timeframe or something? That's the only logical explaination that I can come up with...
The current Console class seems fine for writing text to the console to me. So, I'm just curious as to why the MultiTextWriter class exists in RunUO still.
So you can write the console to logs, and remote admin, and if need be output to something else, IE Windows Forms.
__________________
Jeff Boulanger
ConnectUO - Core Developer

Want to help make ConnectUO better? Click here to submit your ideas/requests
Use your talent to compete against other community members in RunUO hosted coding competitions

If you know XNA (even if its just a little) or are a good artist(2d or 3d) and are interested in making games for a hobby send me a pm or drop by #xna in irc.runuo.com. I'm looking to put together a small game development team.


Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO
Jeff is offline   Reply With Quote
Old 07-06-2007, 06:24 PM   #3 (permalink)
Administrator
 
Zippy's Avatar
 
Join Date: Aug 2002
Location: Baltimore, MD
Age: 25
Posts: 4,870
Default

Jeff's correct. This is part of remote administration... it allows output going to the console to be redirected to multiple places at once... Like writing to the console, to a log, and to a remote client all at the same time without using a special print command. You just use Console.Write() like normal.
__________________
Zippy, Razor Creator and RunUO Core Developer
The RunUO Software Team

"Intuition, like a flash of lightning, lasts only for a second. It generally comes when one is tormented by a difficult decipherment and when one reviews in his mind the fruitless experiments already tried. Suddenly the light breaks through and one finds after a few minutes what previous days of labor were unable to reveal."
~The Cryptonomicon

Zippy is offline   Reply With Quote
Old 07-06-2007, 09:59 PM   #4 (permalink)
Forum Expert
 
Ohms_Law's Avatar
 
Join Date: Sep 2004
Age: 37
Posts: 1,006
Default

ah, thanks! I completely overlooked that angle, but now that you guys have pointed that out I can see that in the constructor...
neat!
Ohms_Law is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5