On this page
  1. syslog.openlog
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

syslog.openlog

Prev: syslog.closelog | Up: syslog | Next: syslog.setlogmask
Rel: syslog.closelog, syslog.setlogmask, syslog.syslog
Ref: docs.python.org — syslog.openlog
Tags: #public #python3 #stdlib #syslog


Import

import syslog
from syslog import openlog

Signature & Overview

syslog.openlog(...)

Set logging options of subsequent syslog() calls.

Usage

import syslog

# Configures ident, options (LOG_PID), and facility (LOG_DAEMON) for the process
assert callable(syslog.openlog)

Gotchas

REPL Inspect

from syslog import openlog
help(openlog)

Linked from

Related notes