# Hercules Version 3: System Messages: LG - Log functions

This page describes messages related to the log functions of the Hercules S/370, ESA/390, and z/Architecture emulator.

### Messages

`HHCLG001E Error redirecting stdout: error`
  Meaning
    The stdout stream could not be redirected to the system logger, the error is described by `error`.
  Issued by
    logger.c, function logger_thread
`HHHCLG002E Error reading syslog pipe: error`
  Meaning
    An error occurred while reading the syslog pipe. The error is described by `error`.
  Issued by
    logger.c, function logger_thread
`HHCLG003E Error writing hardcopy log: error`
  Meaning
    The error as indicated by `error` occurred while writing the hardcopy log.
  Issued by
    logger.c, function logger_thread
`HHCLG004E Error duplicating stderr: error`
  Meaning
    Stdout could not be redirected to stderr. The error is described by `error`.
  Issued by
    logger.c, function logger_init
`HHCLG005E Error duplicating stdout: error`
  Meaning
    Stderr could not be redirected to stdout. The error is described by `error`.
  Issued by
    logger.c, function logger_init
`HHCLG006E Duplicate error redirecting hardcopy log: error`
  Meaning
    The error described by `error` occurred whilst redirecting the hardcopy log.
  Issued by
    logger.c, function logger_init
`HHCLG007S Hardcopy log fdopen failed: error`
  Meaning
    An attempt to open a stream for the hardcopy log failed. The error is described by `error`.
  Issued by
    logger.c, function logger_init
`HHCLG008S logbuffer malloc failed: error`
  Meaning
    An instorage buffer for the system log could not be obtained. The error is described by `error`.
  Issued by
    logger.c, function logger_init
`HHCLG009S Syslog message pipe creation failed: error`
  Meaning
    An attempt to create the pipe for the system logger failed. The error is described by `error`.
  Action
    Check that your firewall is not preventing Hercules from opening a listening pipe.
  Issued by
    logger.c, function logger_init
`HHCLG012E Cannot create logger thread: error`
  Meaning
    An attempt to create the logger thread failed. `error` is the description of the error code returned by the pthread_create call.
  Action
    If the error is "No error" ensure that Hercules has been correctly linked with the pthread library.
  Issued by
    logger.c, function logger_init
`HHCLG014E log not active`
  Meaning
    A log off command was issued but there was no active log file.
  Action
    None.
  Issued by
    logger.c, function log_sethrdcpy
`HHCLG015I log closed`
  Meaning
    The active log file has been closed as a result of a log off command.
  Action
    None.
  Issued by
    logger.c, function log_sethrdcpy
`HHCLG016E Error opening logfile filename: error`
  Meaning
    The new log file requested by a log command could not be opened. `error` is the description of the error code returned by the open call.
  Action
    Reissue the log command with the correct filename.
  Issued by
    logger.c, function log_sethrdcpy
`HHCLG017S log file fdopen failed for filename: error`
  Meaning
    The logger was unable to obtain the file descriptor for the new log file requested by a log command. `error` is the description of the error code returned by the fdopen call.
  Action
    Reissue the log command with the correct filename.
  Issued by
    logger.c, function log_sethrdcpy
`HHCLG018I log switched to filename`
  Meaning
    As a result of a log command the logger is now writing to the requested log file.
  Action
    None.
  Issued by
    logger.c, function log_sethrdcpy

If you have a question about Hercules, see the Hercules Frequently-Asked Questions page.

Last updated $Date$ $Revision$