pyrlang.util

Logging setup for applications, and a string helper.

pyrlang.util.start_pyrlang()

Configure logging from the OS environment variables documented at Configuration. For applications to call: importing pyrlang no longer does (a library does not configure the application’s logging).

pyrlang.util.as_str(x)

Given byte string, or string, or Atom extracts a string from it. Bytes are interpreted as ASCII/Latin-1.

Raises:

Exception – if argument is not bytes, string or Atom