log

The log module provides print methods debug(), info(), user(), warning(), and error(), in increasing order of priority. Output is sent to stdout as well as to an html formatted log file if so configured.

This is a transitional wrapper around the external treelog module.

nutils.log.debug(*args, sep=' ')

Write message to log.

Parameters
  • *args (tuple of str) – Values to be printed to the log.

  • sep (str) – String inserted between values, default a space.

nutils.log.info(*args, sep=' ')

Write message to log.

Parameters
  • *args (tuple of str) – Values to be printed to the log.

  • sep (str) – String inserted between values, default a space.

nutils.log.user(*args, sep=' ')

Write message to log.

Parameters
  • *args (tuple of str) – Values to be printed to the log.

  • sep (str) – String inserted between values, default a space.

nutils.log.warning(*args, sep=' ')

Write message to log.

Parameters
  • *args (tuple of str) – Values to be printed to the log.

  • sep (str) – String inserted between values, default a space.

nutils.log.error(*args, sep=' ')

Write message to log.

Parameters
  • *args (tuple of str) – Values to be printed to the log.

  • sep (str) – String inserted between values, default a space.

nutils.log.debugfile(name, mode, *, id=None)

Open file in logger-controlled directory.

Parameters
  • filename (str) –

  • mode (str) – Should be either 'w' (text) or 'wb' (binary data).

  • id – Bytes identifier that can be used to decide a priori that a file has already been constructed. Default: None.

nutils.log.infofile(name, mode, *, id=None)

Open file in logger-controlled directory.

Parameters
  • filename (str) –

  • mode (str) – Should be either 'w' (text) or 'wb' (binary data).

  • id – Bytes identifier that can be used to decide a priori that a file has already been constructed. Default: None.

nutils.log.userfile(name, mode, *, id=None)

Open file in logger-controlled directory.

Parameters
  • filename (str) –

  • mode (str) – Should be either 'w' (text) or 'wb' (binary data).

  • id – Bytes identifier that can be used to decide a priori that a file has already been constructed. Default: None.

nutils.log.warningfile(name, mode, *, id=None)

Open file in logger-controlled directory.

Parameters
  • filename (str) –

  • mode (str) – Should be either 'w' (text) or 'wb' (binary data).

  • id – Bytes identifier that can be used to decide a priori that a file has already been constructed. Default: None.

nutils.log.errorfile(name, mode, *, id=None)

Open file in logger-controlled directory.

Parameters
  • filename (str) –

  • mode (str) – Should be either 'w' (text) or 'wb' (binary data).

  • id – Bytes identifier that can be used to decide a priori that a file has already been constructed. Default: None.