equal
deleted
inserted
replaced
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 |