def ParseLogEntry(entry):
  """Parses a single log entry emitted by app_logging.AppLogsHandler.

  Parses a log entry of the form LOG <level> <timestamp> <message> where the
  level is in the range [0, 4]. If the entry is not of that form, take the whole
  entry to be the message. Null characters in the entry are replaced by
  newlines.

  Args:
    entry: The log entry to parse.

  Returns:
    A (timestamp, level, message, source_location) tuple.
  """
  try:
    return _StrictParseLogEntry(entry)
  except __HOLE__:

    return _CurrentTimeMicro(), _DEFAULT_LEVEL, _Clean(entry), None
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/api/logservice/logsutil.py/ParseLogEntry