Accessing The Log Through Async Task

Discussion in 'Plugin Development' started by quaz3l, Mar 19, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    quaz3l

    Is it possible/Legal to write to the log via a async task. If not how would I?
     
  2. Offline

    bleachisback

    the log isn't a bukkit class/api so yes, it's fine.
     
  3. Offline

    quaz3l

    Ok thanks for clarifying :)
     
  4. Offline

    Njol

  5. Offline

    bleachisback

  6. Offline

    nisovin

    That's definitely not the rule. The rule is "always write thread-safe code if you're working with different threads". A lot of Java objects are not thread-safe, in fact, many Collection objects are not thread-safe.
     
  7. Offline

    bleachisback

    Oh, okay, that's good to know. I'm assuming, though, that none of the Bukkit API is thread safe.
     
Thread Status:
Not open for further replies.

Share This Page