Package org.openbravo.scheduling
Class ProcessLogger
- java.lang.Object
-
- org.openbravo.scheduling.ProcessLogger
-
public class ProcessLogger extends Object
-
-
Constructor Summary
Constructors Constructor Description ProcessLogger(ConnectionProvider conn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLog()
void
log(String msg)
Log a message.void
logln(String msg)
Log a message with an additional newline character.String
messageDb(String msgKey, String language)
Returns an i18n-ed message String from the database.
-
-
-
Constructor Detail
-
ProcessLogger
public ProcessLogger(ConnectionProvider conn)
-
-
Method Detail
-
getLog
public String getLog()
-
messageDb
public String messageDb(String msgKey, String language)
Returns an i18n-ed message String from the database.- Parameters:
msgKey
- the message idlanguage
- the language to be used to query for the message- Returns:
- the message retrieved from the db, using the msgKey and language
-
log
public void log(String msg)
Log a message.- Parameters:
msg
- the message to log- See Also:
getLog()
-
-