Debian Codegraph @

google/logging/type/log_severity.proto

raw
1 // Copyright 2025 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 syntax = "proto3";
16
17 package google.logging.type;
18
19 option csharp_namespace = "Google.Cloud.Logging.Type";
20 option go_package = "google.golang.org/genproto/googleapis/logging/type;ltype";
21 option java_multiple_files = true;
22 option java_outer_classname = "LogSeverityProto";
23 option java_package = "com.google.logging.type";
24 option objc_class_prefix = "GLOG";
25 option php_namespace = "Google\\Cloud\\Logging\\Type";
26 option ruby_package = "Google::Cloud::Logging::Type";
27
28 // The severity of the event described in a log entry, expressed as one of the
29 // standard severity levels listed below. For your reference, the levels are
30 // assigned the listed numeric values. The effect of using numeric values other
31 // than those listed is undefined.
32 //
33 // You can filter for log entries by severity. For example, the following
34 // filter expression will match log entries with severities `INFO`, `NOTICE`,
35 // and `WARNING`:
36 //
37 // severity > DEBUG AND severity <= WARNING
38 //
39 // If you are writing log entries, you should map other severity encodings to
40 // one of these standard levels. For example, you might map all of Java's FINE,
41 // FINER, and FINEST levels to `LogSeverity.DEBUG`. You can preserve the
42 // original severity level in the log entry payload if you wish.
43 enum LogSeverity {
44 // (0) The log entry has no assigned severity level.
45 DEFAULT = 0;
46
47 // (100) Debug or trace information.
48 DEBUG = 100;
49
50 // (200) Routine information, such as ongoing status or performance.
51 INFO = 200;
52
53 // (300) Normal but significant events, such as start up, shut down, or
54 // a configuration change.
55 NOTICE = 300;
56
57 // (400) Warning events might cause problems.
58 WARNING = 400;
59
60 // (500) Error events are likely to cause problems.
61 ERROR = 500;
62
63 // (600) Critical events cause more severe problems or outages.
64 CRITICAL = 600;
65
66 // (700) A person must take an action immediately.
67 ALERT = 700;
68
69 // (800) One or more systems are unusable.
70 EMERGENCY = 800;
71 }