Flash, Flex, Logging Class

Hello All, I am quite new to ActionScript 3. I am attempting to create an application in Flash were clients can exchange and send messages to each other. I have heard logAppend, logTarget, and the log class etc will achieve this in Flex Builder. Can this code work in Flash too?
If the answer is yes, can you provide me some examples of the code. If no, then what do i do so clients can send messages?