"""
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""


class LOG_LEVEL:
    DEBUG = 0
    WARNING = 1
    ERROR = 2

@@ -674,8 +674,236 @@
 ROR = 2%0A
+%0A    @staticmethod%0A    def from_str(string):%0A        return %7B%0A            %22debug%22: LOG_LEVEL.DEBUG,%0A            %22warning%22: LOG_LEVEL.WARNING,%0A            %22error%22: LOG_LEVEL.ERROR%0A        %7D.get(string.lower(), LOG_LEVEL.WARNING)%0A

Add from_str()