[libbluray-devel] Added some logging to BDJLoader

hpi1 git at videolan.org
Sat Mar 30 01:39:08 CET 2013


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sat Mar 16 14:17:12 2013 +0200| [d6500c63cb0c54e58497853b3c58a4156273d205] | committer: hpi1

Added some logging to BDJLoader

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=d6500c63cb0c54e58497853b3c58a4156273d205
---

 src/libbluray/bdj/java/org/videolan/BDJLoader.java |   18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/src/libbluray/bdj/java/org/videolan/BDJLoader.java b/src/libbluray/bdj/java/org/videolan/BDJLoader.java
index 9ad626d..6e92eb8 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJLoader.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJLoader.java
@@ -150,7 +150,14 @@ public class BDJLoader {
                                                                    bdjo.getAppCaches(),
                                                                    gui));
                 }
-                logger.info("Loaded class: " + appTable[i].getInitialClass());
+
+                /* log startup calss, startup parameters and jar file */
+                String[] params = appTable[i].getParams();
+                String p = "";
+                if (params != null && params.length > 0) {
+                    p = "(" + StrUtil.Join(params, ",") + ")";
+                }
+                logger.info("Loaded class: " + appTable[i].getInitialClass() + p + " from " + appTable[i].getBasePath() + ".jar");
             }
 
             // change psr
@@ -162,11 +169,14 @@ public class BDJLoader {
             // now run all the xlets
             for (int i = 0; i < appTable.length; i++) {
                 int code = appTable[i].getControlCode();
-                if (code == AppEntry.AUTOSTART)
+                if (code == AppEntry.AUTOSTART) {
+                    logger.info("Autostart xlet " + i + ": " + appTable[i].getInitialClass());
                     proxys[i].start();
-                else if (code == AppEntry.PRESENT)
+                } else if (code == AppEntry.PRESENT) {
+                    logger.info("Resume xlet " + i + ": " + appTable[i].getInitialClass());
                     proxys[i].resume();
-                else {
+                } else {
+                    logger.info("Pause xlet " + i + ": " + appTable[i].getInitialClass());
                     proxys[i].pause();
                 }
             }



More information about the libbluray-devel mailing list