2011/10/5 Fábio Costa <blackjackde...@gmail.com>:
> I wanted some output and tryied to put a "print_string" in my ml file that
> makes the liquidsoap.
> It doesn't show, is there a way to print in the console from the ocaml?

This:
  Printf.printf "message"
should do..

You can also force flushing this way:
  Printf.printf "message%!"

Also, you have the usual optional values:
  Printf.printf "Integer: %i string: %s etc..%!" i s

(Moving to -devel..)

Romain

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Savonet-devl mailing list
Savonet-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-devl

Répondre à