# SoftBank Robotics documentation What's new in NAOqi 2.8?

# ALLogger API

NAOqi Core - Overview | API

Namespace : AL

    #include <alproxies/alloggerproxy.h>

## Method list

As any module, this module inherits methods from ALModule API. It also has the following specific methods:

class `ALLoggerProxy`

- `ALLoggerProxy::debug`
- `ALLoggerProxy::error`
- `ALLoggerProxy::fatal`
- `ALLoggerProxy::info`
- `ALLoggerProxy::logInFile`
- `ALLoggerProxy::logInForwarder`
- `ALLoggerProxy::logInStd`
- `ALLoggerProxy::logInSys`
- `ALLoggerProxy::lowDebug`
- `ALLoggerProxy::lowInfo`
- `ALLoggerProxy::removeHandler`
- `ALLoggerProxy::separator`
- `ALLoggerProxy::setFilter`
- `ALLoggerProxy::setVerbosity`
- `ALLoggerProxy::verbosity`
- `ALLoggerProxy::warn`

## Methods

void `ALLoggerProxy::``debug`(const std::string& moduleName, const std::string& message)

  Deprecated since version 1.12: use qiLogDebug instead

  Log a debug message.

  Parameters: | moduleName – Name of the module. message – Log Message.

void `ALLoggerProxy::``error`(const std::string& moduleName, const std::string& message)

  Deprecated since version 1.12: use qiLogError instead

  Log an error message.

  Parameters: | moduleName – Name of the module. message – Log Message.

void `ALLoggerProxy::``fatal`(const std::string& moduleName, const std::string& message)

  Deprecated since version 1.12: use qiLogFatal instead

  Log a fatal message.

  Parameters: | moduleName – Name of the module. message – Log Message.

void `ALLoggerProxy::``info`(const std::string& moduleName, const std::string& message)

  Deprecated since version 1.12: use qiLogInfo instead

  Log an info message.

  Parameters: | moduleName – Name of the module. message – Log Message.

void `ALLoggerProxy::``logInFile`(const std::string& fileName)

  Deprecated since version 1.12: create your own log handler with qilog and add it with qi::log::addHandler. See libqi documentation for more details.

  Allows the logger to store logs in a file. Warning: this is not recommended on NAO.

  Parameters: | fileName – The fileName to use. Relative to the user naoqi folder.

void `ALLoggerProxy::``logInForwarder`(const std::string& inputAddress)

  Warning

  Should not be used.

  Publish logs to a Log Forwarder. Pass an empty string in order to use the default value: `tcp://localhost:5099`

  Parameters: | inputAddress – Desired input ZMQ address of the Log Forwarder.

void `ALLoggerProxy::``logInStd`()

  Deprecated since version 1.12: does nothing

void `ALLoggerProxy::``logInSys`()

  Deprecated since version 1.12: does nothing

void `ALLoggerProxy::``lowDebug`(const std::string& moduleName, const std::string& message)

  Deprecated since version 1.12: use qiLogDebug instead

  Log an lowDebug message.

  Parameters: | moduleName – Name of the module. message – Log Message.

void `ALLoggerProxy::``lowInfo`(const std::string& moduleName, const std::string& message)

  Deprecated since version 1.12: use qiLogVerbose instead.

  Log an lowInfo message.

  Parameters: | moduleName – Name of the module. message – Log Message.

void `ALLoggerProxy::``removeHandler`(const std::string& name)

  Deprecated since version 1.12: do not use since you cannot add any handler with the API.

void `ALLoggerProxy::``separator`()

  Deprecated since version 1.12.

  Output a simple line separator

void `ALLoggerProxy::``setFilter`()

  Deprecated since version 1.12.

void `ALLoggerProxy::``setVerbosity`(const std::string& verbosity)

  Deprecated since version 1.12: use qi::log::setVerbosity instead.

  set verbosity: debug, verbose, info, warning, error, fatal, silent. Default is info

  Parameters: | verbosity – verbosity value

int `ALLoggerProxy::``verbosity`()

  Deprecated since version 1.12: use qi::log::verbosity instead.

  Get verbosity level of qi logs: debug(6), verbose(5), info(4), warning(3), error(2), fatal(1), silent(0). Default is info.

  Parameters: | verbosity – verbosity value

void `ALLoggerProxy::``warn`(const std::string& moduleName, const std::string& message)

  Deprecated since version 1.12: use qiLogWarning instead.

  Log a warning.

  Parameters: | moduleName – Name of the module. message – Log Message.

Glossary Site map Index Support Contact Legal Notices