Home » Docs » Server »
 

log

(since 1.0)



Log a message in console

Description


log ( mixed message )

Used to add a message in console, a "\n" will be added.

Parameters


message
Message that will be loged, will be converted to string

Examples


Ape.log('foo');
// foo
 
Ape.log(pipe);
// [object Object]

User notes


Teguh Eko
Teguh Eko said:
Hi,

Where can I see the log resulted from this method. I tried to call it from the inlinepush command in the server module, but I can not see the result in the console terminal where I started the APE Server and even in the log file configured in the ape.conf
29/01/10 11:34

Daniel Meeks
Daniel Meeks said:
From my understanding you have to run ape in console mode (daemon = false) and APE.log will show the log messages in the console.
08/02/10 22:04

Post a note


User notes may be edited or deleted, and usually a note is deleted because of the following reasons:
  • Bugs: Instead report a bug
  • Missing documentation: report that as a bug.
  • Support questions: See the community for available options.

In other words, do not ask questions within the user notes.

Note <b>,<u>,<i> HTML tags are allowed in the posts and the note formatting is preserved. URLs will be turned into clickable links, JavaScipt and C code blocks enclosed in the <source="javascript">JS Code</source> and <source="c">C Code</source> tags will be source highlighted automatically.