/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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 __LOGGING_FLAGS_HPP__ #define __LOGGING_FLAGS_HPP__ #include #include #include "flags/flags.hpp" namespace mesos { namespace internal { namespace logging { class Flags : public virtual flags::FlagsBase { public: Flags() { add(&Flags::quiet, "quiet", "Disable logging to stderr", false); add(&Flags::log_dir, "log_dir", "Location to put log files (no default, nothing\n" "is written to disk unless specified;\n" "does not affect logging to stderr)"); add(&Flags::logbufsecs, "logbufsecs", "How many seconds to buffer log messages for", 0); } bool quiet; Option log_dir; int logbufsecs; }; } // namespace logging { } // namespace internal { } // namespace mesos { #endif // __LOGGING_FLAGS_HPP__