diff options
author | Ian Rogers <irogers@google.com> | 2014-10-21 23:31:19 -0700 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2014-10-22 12:06:23 -0700 |
commit | c7dd295a4e0cc1d15c0c96088e55a85389bade74 (patch) | |
tree | 0c08a2236bc9ba5d9a4dc75d4dd0ed2d76f8f1c6 /runtime/log_severity.h | |
parent | 94e5af8602150efa95bde35cc9be9891ddf30135 (diff) | |
download | art-c7dd295a4e0cc1d15c0c96088e55a85389bade74.zip art-c7dd295a4e0cc1d15c0c96088e55a85389bade74.tar.gz art-c7dd295a4e0cc1d15c0c96088e55a85389bade74.tar.bz2 |
Tidy up logging.
Move gVerboseMethods to CompilerOptions. Now "--verbose-methods=" option to
dex2oat rather than runtime argument "-verbose-methods:".
Move ToStr and Dumpable out of logging.h, move LogMessageData into logging.cc
except for a forward declaration.
Remove ConstDumpable as Dump methods are all const (and make this so if not
currently true).
Make LogSeverity an enum and improve compile time assertions and type checking.
Remove log_severity.h that's only used in logging.h.
With system headers gone from logging.h, go add to .cc files missing system
header includes.
Also, make operator new in ValueObject private for compile time instantiation
checking.
Change-Id: I3228f614500ccc9b14b49c72b9821c8b0db3d641
Diffstat (limited to 'runtime/log_severity.h')
-rw-r--r-- | runtime/log_severity.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/runtime/log_severity.h b/runtime/log_severity.h deleted file mode 100644 index 31682df..0000000 --- a/runtime/log_severity.h +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2011 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ART_RUNTIME_LOG_SEVERITY_H_ -#define ART_RUNTIME_LOG_SEVERITY_H_ - -typedef int LogSeverity; - -const int VERBOSE = 0, DEBUG = 1, INFO = 2, WARNING = 3, ERROR = 4, FATAL = 5; -const int INTERNAL_FATAL = 6; // For Runtime::Abort. - -#endif // ART_RUNTIME_LOG_SEVERITY_H_ |