src/hotspot/share/logging/logLevel.hpp
changeset 49163 580bb0b85f63
parent 47216 71c04702a3d5
child 53244 9807daeb47c4
equal deleted inserted replaced
49162:c200b4700aeb 49163:580bb0b85f63
     1 /*
     1 /*
     2  * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    69     assert(level >= 0 && level < LogLevel::Count, "Invalid level (enum value %d).", level);
    69     assert(level >= 0 && level < LogLevel::Count, "Invalid level (enum value %d).", level);
    70     return _name[level];
    70     return _name[level];
    71   }
    71   }
    72 
    72 
    73   static LogLevel::type from_string(const char* str);
    73   static LogLevel::type from_string(const char* str);
       
    74   static LogLevel::type fuzzy_match(const char *level);
    74 
    75 
    75  private:
    76  private:
    76   static const char* _name[];
    77   static const char* _name[];
    77 };
    78 };
    78 
    79