Built motion from commit 44377920.|2.6.11
[motion2.git] / legacy-libs / google-proto-files / google / logging / type / log_severity.proto
1 // Copyright 2018 Google LLC.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 //     http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 //
15
16 syntax = "proto3";
17
18 package google.logging.type;
19
20 import "google/api/annotations.proto";
21
22 option csharp_namespace = "Google.Cloud.Logging.Type";
23 option go_package = "google.golang.org/genproto/googleapis/logging/type;ltype";
24 option java_multiple_files = true;
25 option java_outer_classname = "LogSeverityProto";
26 option java_package = "com.google.logging.type";
27 option php_namespace = "Google\\Cloud\\Logging\\Type";
28
29 // The severity of the event described in a log entry, expressed as one of the
30 // standard severity levels listed below.  For your reference, the levels are
31 // assigned the listed numeric values. The effect of using numeric values other
32 // than those listed is undefined.
33 //
34 // You can filter for log entries by severity.  For example, the following
35 // filter expression will match log entries with severities `INFO`, `NOTICE`,
36 // and `WARNING`:
37 //
38 //     severity > DEBUG AND severity <= WARNING
39 //
40 // If you are writing log entries, you should map other severity encodings to
41 // one of these standard levels. For example, you might map all of Java's FINE,
42 // FINER, and FINEST levels to `LogSeverity.DEBUG`. You can preserve the
43 // original severity level in the log entry payload if you wish.
44 enum LogSeverity {
45   // (0) The log entry has no assigned severity level.
46   DEFAULT = 0;
47
48   // (100) Debug or trace information.
49   DEBUG = 100;
50
51   // (200) Routine information, such as ongoing status or performance.
52   INFO = 200;
53
54   // (300) Normal but significant events, such as start up, shut down, or
55   // a configuration change.
56   NOTICE = 300;
57
58   // (400) Warning events might cause problems.
59   WARNING = 400;
60
61   // (500) Error events are likely to cause problems.
62   ERROR = 500;
63
64   // (600) Critical events cause more severe problems or outages.
65   CRITICAL = 600;
66
67   // (700) A person must take an action immediately.
68   ALERT = 700;
69
70   // (800) One or more systems are unusable.
71   EMERGENCY = 800;
72 }