Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-core-dev] logging conventions

I have a question about logging in the Eclipse core projects.  Is
there a general policy or convention for logging (e.g. what to log and
when to log it)?

I also have a question about a more specific situation.  In exception
handlers, there is sometimes a call to Policy.log(Throwable).  However
sometimes there is a call to Policy.log(IStatus).  For example, in the
CoreException handler in FileSystemResourceManager.isSynchronized() in
the org.eclipse.core.internal.resources project, there is a call to
the former, but in many other handlers of CoreExceptions in the
project, the latter is used.  Is there a general policy or convention
about which one to use?

Thanks,
Arjun


Back to the top