terminal output message too long

When using print command, say print “test1” ,

This is what happened in different builds:

build 842: test1  
build 968: 2012-11-14 22:37:50.186 Corona Simulator[716:903] test1  

Is there a way making the terminal mode to omit the long prefix and let it just say ‘test1’ , like in build 842 ?

Thanks. [import]uid: 44389 topic_id: 32972 reply_id: 332972[/import]

Scroll down to item 5 at:

http://www.coronalabs.com/blog/2012/09/19/faq-wednesday-iphone-5-and-ios-6/

Joakim [import]uid: 81188 topic_id: 32972 reply_id: 130939[/import]

iOS 6 stopped routing output to stdout and stderr to the console.log on devices, which broke Corona’s print statement when trying to see the prints on device. They had to change to use the NSlog API call and with that came the extra information with each print statement. Sucks, but its better than the result which is no info in the device logs.
[import]uid: 19626 topic_id: 32972 reply_id: 130949[/import]

Scroll down to item 5 at:

http://www.coronalabs.com/blog/2012/09/19/faq-wednesday-iphone-5-and-ios-6/

Joakim [import]uid: 81188 topic_id: 32972 reply_id: 130939[/import]

iOS 6 stopped routing output to stdout and stderr to the console.log on devices, which broke Corona’s print statement when trying to see the prints on device. They had to change to use the NSlog API call and with that came the extra information with each print statement. Sucks, but its better than the result which is no info in the device logs.
[import]uid: 19626 topic_id: 32972 reply_id: 130949[/import]

Not sure if it helps you at all but if you need it on a new line like previously without the prefix immediately behind it you might do;
print ("\nThis is a test")

or the like.

Peach :slight_smile: [import]uid: 52491 topic_id: 32972 reply_id: 130989[/import]

Not sure if it helps you at all but if you need it on a new line like previously without the prefix immediately behind it you might do;
print ("\nThis is a test")

or the like.

Peach :slight_smile: [import]uid: 52491 topic_id: 32972 reply_id: 130989[/import]

Got it. Thanks for all the informational replies! [import]uid: 44389 topic_id: 32972 reply_id: 131250[/import]

To add to what Peach said, Lua also allows you to hide old functions with replacements, so you can do it in your main.lua (or other startup file) and put something like this:

local basePrint = \_G.print  
\_G.print = function(...) basePrint("\n", ...) end  

Which makes all prints automatically drop to the next line, without having to rewrite all your prints. [import]uid: 134101 topic_id: 32972 reply_id: 131252[/import]

Got it. Thanks for all the informational replies! [import]uid: 44389 topic_id: 32972 reply_id: 131250[/import]

To add to what Peach said, Lua also allows you to hide old functions with replacements, so you can do it in your main.lua (or other startup file) and put something like this:

local basePrint = \_G.print  
\_G.print = function(...) basePrint("\n", ...) end  

Which makes all prints automatically drop to the next line, without having to rewrite all your prints. [import]uid: 134101 topic_id: 32972 reply_id: 131252[/import]