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.
| 1840 | |
| 1841 | |
| 1842 | class RootLogger(Logger): |
| 1843 | """ |
| 1844 | A root logger is not that different to any other logger, except that |
| 1845 | it must have a logging level and there is only one instance of it in |
| 1846 | the hierarchy. |
| 1847 | """ |
| 1848 | def __init__(self, level): |
| 1849 | """ |
| 1850 | Initialize the logger with the name "root". |
| 1851 | """ |
| 1852 | Logger.__init__(self, "root", level) |
| 1853 | |
| 1854 | def __reduce__(self): |
| 1855 | return getLogger, () |
| 1856 | |
| 1857 | _loggerClass = Logger |
| 1858 |