P4C
The P4 Compiler
Loading...
Searching...
No Matches
Logging Namespace Reference

Classes

class  FileLog
 A FileLog is used to redirect the logging output of a visitor pass to a file. More...
 
class  Logger
 Base class for logging to a file. More...
 
class  Manifest
 
class  PassManager
 
class  PlainWriterAdapter
 
class  PrettyWriterAdapter
 
class  Writer
 

Typedefs

using PlainWriter = rapidjson::Writer<rapidjson::StringBuffer>
 Plain writer does not indent with whitespaces.
 
using PrettyWriter = rapidjson::PrettyWriter<rapidjson::StringBuffer>
 

Enumerations

enum  LogLevel_t {
  LOG , DEBUG , INFO , WARNING ,
  ERROR , CRITICAL
}
 Define the levels of logging. All messages above the set level for logger are logged.
 
enum  Mode { APPEND , CREATE , AUTO }
 specifies how the log file is created and/or reused. More...
 

Detailed Description

Copyright (C) 2024 Intel Corporation

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.

SPDX-License-Identifier: Apache-2.0

Enumeration Type Documentation

◆ Mode

specifies how the log file is created and/or reused.

Enumerator
APPEND 

Appends to a log. Creates a new log if it doesn't already exist.

CREATE 

Creates a new log. Overwrites if the log already exists.

AUTO 

Creates if this is the first time writing to the log; otherwise, appends.