A root logger is not that different to any other logger, except that it must have a logging level and there is only one instance of it in the hierarchy.
| 1784 | |
| 1785 | |
| 1786 | class RootLogger(Logger): |
| 1787 | """ |
| 1788 | A root logger is not that different to any other logger, except that |
| 1789 | it must have a logging level and there is only one instance of it in |
| 1790 | the hierarchy. |
| 1791 | """ |
| 1792 | def __init__(self, level): |
| 1793 | """ |
| 1794 | Initialize the logger with the name "root". |
| 1795 | """ |
| 1796 | Logger.__init__(self, "root", level) |
| 1797 | |
| 1798 | def __reduce__(self): |
| 1799 | return getLogger, () |
| 1800 | |
| 1801 | _loggerClass = Logger |
| 1802 |