i write code in start() in lifecyclelistenerimpl.
system.err.println("logging in sys"); utility.applicationlogger.logp(level.severe, lifecyclelistenerimpl.class.getname(), "ontestmessage", "embedded warning message 1"); logger.getlogger(utility.app_logname).logp(level.severe, this.getclass().getname(), "ontestmessage", "embedded warning message 2"); logger.getlogger("oracle.adfmf.application").logp(level.severe, this.getclass().getname(), "ontestmessage", "embedded warning message 3");
and got following output in console window. not under stand ?
may 6 14:41:29 evosys-imacs-imac.local application1[1771]: obj-c [ch-1, state=created abletosend=yes] send message vmmessage [ type: plain[0x00] prinorty: 2 channelid: 1 messageid: 11 length: 225 body: {41, 44, 46, 4d, 53, 47, 30, 31, 30, 30, 30, 30, 20, 20, 20, 35, 30, 35, 20, 20, 20, 20, 20, 30, 20, 20, 20, 20, 20, 30, 20, 20, 20, 31, 38, 39, 7b, 22, 63, 6c, 61, 73, 73, 6e, 61, 6d, 65, 22, 3a, 22, 6f, 72, 61, 63, 6c, 65, 2e, 61, 64, 66, 6d, 66, 2e, 66, 72, 61, 6d, 65, 77, 6f, 72, 6b, 2e, 61, 70, 69, 2e, 4d, 6f, 64, 65, 6c, 22, 2c, 22, 70, 61, 72, 61, 6d, 73, 22, 3a, 5b, 5b, 22, 23, 7b, 61, 70, 70, 6c, 69, 63, 61, 74, 69, 6f, 6e, 53, 63, 6f, 70, 65, 2e, 63, 6f, 6e, 66, 69, 67, 75, 72, 61, 74, 69, 6f, 6e, 2e, 61, 6d, 78, 54, 72, 61, 6e, 73, 69, 74, 69, 6f, 6e, 4d, 6f, 64, 65, 7d, 22, 2c, 22, 23, 7b, 61, 70, 70, 6c, 69, 63, 61, 74, 69, 6f, 6e, 53, 63, 6f, 70, 65, 2e, 63, 6f, 6e, 66, 69, 67, 75, 72, 61, 74, 69, 6f, 6e, 2e, 61, 6d, 78, 54, 72, 61, 6e, 73, 69, 74, 69, 6f, 6e, 4d, 6f, 64, 65, 7d, 22, 5d, 5d, 2c, 22, 6d, 65, 74, 68, 6f, 64, 22, 3a, 22, 67, 65, 74, 56, 61, 6c, 75, 65, 22, 7d} ] may 6 14:41:29 evosys-imacs-imac.local application1[1771]: obj-c [ch-1, state=created abletosend=yes] send message vmmessage [ type: plain[0x00] prinorty: 2 channelid: 1 messageid: 11 length: 136 body: {41, 44, 46, 4d, 53, 47, 30, 31, 30, 30, 30, 30, 20, 20, 20, 35, 30, 36, 20, 20, 20, 20, 20, 30, 20, 20, 20, 20, 20, 30, 20, 20, 20, 31, 30, 30, 7b, 22, 63, 6c, 61, 73, 73, 6e, 61, 6d, 65, 22, 3a, 22, 6f, 72, 61, 63, 6c, 65, 2e, 61, 64, 66, 6d, 66, 2e, 66, 72, 61, 6d, 65, 77, 6f, 72, 6b, 2e, 61, 70, 69, 2e, 4d, 6f, 64, 65, 6c, 22, 2c, 22, 70, 61, 72, 61, 6d, 73, 22, 3a, 5b, 22, 66, 65, 61, 74, 75, 72, 65, 31, 2f, 6c, 6f, 67, 2e, 61, 6d, 78, 22, 5d, 2c, 22, 6d, 65, 74, 68, 6f, 64, 22, 3a, 22, 73, 65, 74, 43, 6f, 6e, 74, 65, 78, 74, 22, 7d} ] may 6 14:04:06 evosys-imacs-imac.local manager[1443] <warning>: obj-c [ch-9, state=created abletosend=yes]: waiting message may 6 14:04:06 evosys-imacs-imac.local manager[1443] <warning>: obj-c [ch-1, state=created abletosend=yes]: message arrived - vmmessage [ type: plain[0x00] prinorty: 2 channelid: -1 messageid: 3 length: 340 body: {41, 44, 46, 4d, 53, 47, 20, 31, 30, 30, 30, 30, 20, 20, 20, 35, 31, 30, 20, 20, 20, 35, 31, 30, 20, 20, 20, 20, 20, 30, 20, 20, 20, 33, 30, 34, 7b, 22, 72, 65, 73, 75, 6c, 74, 22, 3a, 5b, 7b, 22, 2e, 74, 79, 70, 65, 22, 3a, 22, 6f, 72, 61, 63, 6c, 65, 2e, 61, 64, 66, 6d, 66, 2e, 66, 72, 61, 6d, 65, 77, 6f, 72, 6b, 2e, 63, 6f, 6e, 74, 72, 61, 63, 74, 2e, 61, 64, 66, 2e, 4e, 61, 6d, 65, 56, 61, 6c, 75, 65, 50, 61, 69, 72, 22, 2c, 22, 76, 61, 6c, 75, 65, 22, 3a, 7b, 22, 2e, 6e, 75, 6c, 6c, 22, 3a, 74, 72, 75, 65, 7d, 2c, 22, 6e, 61, 6d, 65, 22, 3a, 22, 23, 7b, 61, 70, 70, 6c, 69, 63, 61, 74, 69, 6f, 6e, 53, 63, 6f, 70, 65, 2e, 63, 6f, 6e, 66, 69, 67, 75, 72, 61, 74, 69, 6f, 6e, 2e, 61, 6d, 78, 54, 72, 61, 6e, 73, 69, 74, 69, 6f, 6e, 4d, 6f, 64, 65, 7d, 22, 7d, 2c, 7b, 22, 2e, 74, 79, 70, 65, 22, 3a, 22, 6f, 72, 61, 63, 6c, 65, 2e, 61, 64, 66, 6d, 66, 2e, 66, 72, 61, 6d, 65, 77, 6f, 72, 6b, 2e, 63, 6f, 6e, 74, 72, 61, 63, 74, 2e, 61, 64, 66, 2e, 4e, 61, 6d, 65, 56, 61, 6c, 75, 65, 50, 61, 69, 72, 22, 2c, 22, 76, 61, 6c, 75, 65, 22, 3a, 7b, 22, 2e, 6e, 75, 6c, 6c, 22, 3a, 74, 72, 75, 65, 7d, 2c, 22, 6e, 61, 6d, 65, 22, 3a, 22, 23, 7b, 61, 70, 70, 6c, 69, 63, 61, 74, 69, 6f, 6e, 53, 63, 6f, 70, 65, 2e, 63, 6f, 6e, 66, 69, 67, 75, 72, 61, 74, 69, 6f, 6e, 2e, 61, 6d, 78, 54, 72, 61, 6e, 73, 69, 74, 69, 6f, 6e, 4d, 6f, 64, 65, 7d, 22, 7d, 5d, 7d} ] may 6 14:04:06 evosys-imacs-imac.local manager[1443] <warning>: obj-c [ch-1, state=created abletosend=yes]: waiting message may 6 14:04:06 evosys-imacs-imac.local manager[1443] <warning>: obj-c [ch-1, state=created abletosend=yes]: message arrived - vmmessage [ type: plain[0x00] prinorty: 2 channelid: -1 messageid: 3 length: 137 body: {41, 44, 46, 4d, 53, 47, 20, 31, 30, 30, 30, 30, 20, 20, 20, 35, 31, 31, 20, 20, 20, 35, 31, 31, 20, 20, 20, 20, 20, 30, 20, 20, 20, 31, 30, 31, 7b, 22, 72, 65, 73, 75, 6c, 74, 22, 3a, 5b, 5d, 2c, 22, 64, 61, 74, 61, 43, 68, 61, 6e, 67, 65, 45, 76, 65, 6e, 74, 22, 3a, 7b, 22, 76, 61, 72, 69, 61, 62, 6c, 65, 43, 68, 61, 6e, 67, 65, 73, 22, 3a, 7b, 22, 76, 69, 65, 77, 53, 63, 6f, 70, 65, 22, 3a, 7b, 22, 2e, 6e, 75, 6c, 6c, 22, 3a, 74, 72, 75, 65, 7d, 7d, 2c, 22, 70, 72, 6f, 76, 69, 64, 65, 72, 43, 68, 61, 6e, 67, 65, 73, 22, 3a, 7b, 7d, 7d, 7d} ]
so, question printing "logging in sys", , why not printed in console.
if using iphone simulator 6.1, check file: /users//library/application support/iphone simulator/6.1/applications//documents/logs/application.log
Comments
Post a Comment