# loggger

logger("logName", "message for log file")

Write a message to a named logger. The logger must be set up in the LoggingConfig.xml file, which is in the Inaport install directory.

## Arguments

Argument | Data Type | Description
logName | string | Name of the logger to use (created in the LoggingConifg.xml file) Defaults to "UserLogger"
message | string | Message to write to the log file (if logging is enabled)

## Returns

The log message.

## Description

This function allows you to write a message to a specified logger. To define a logger, you need to edit the LoggingConfig.xml file, which is in the Inaport istall directory.

This gives you the ability to set up your own logging system, and selectively write messages to it. Using the log4net appenders, you can specify that the logger writes to multiple target systems - database, rolling text files, system event log, etc.

## Examples

Example | Returns | Description
logger("MyLogger", "Hello world") | Hello world | Write to the specified logger.

## See Also

log(), stop()