#1 Log visibility in all classes


would it be possible to change the visibility of the log
and the console in the classes?
At the moment, only the main class can access it, but I
would like to use it also during debugging, which means
that sometimes I want the other objects to be able to
write to the console.
I would like to keep using standard ZIG sources, and it
might be handy for others.



  • David Janssens

    David Janssens - 2004-02-18
    • priority: 5 --> 3
    • summary: Log visibility --> Log visibility in all classes
  • Fabio Reis Cecin

    • priority: 3 --> 5
    • status: open --> pending
  • Fabio Reis Cecin

    Logged In: YES

    You can declare a global variable for the console and a
    global handle for the log (I believe this is done in the
    "minigame" demo), then you can access them from any object.

    HOWEVER, the console class and the log are not really
    thread-safe (as far as I remember) to be shared globally in
    all situations.

    the next release will have the console/log feature tweaked a
    bit for easier use, and some classes (zigclient & zigserver
    at least) will have no-arg constructors (so you can give it
    a console after the object is constructed -- another
    requested feature which is already in CVS).

    - Fabio

  • Fabio Reis Cecin

    • status: pending --> open
  • David Janssens

    David Janssens - 2004-05-31
    • status: open --> closed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks