blob: affec777798d3c8501a9867671db9a9e16490a43 [file] [log] [blame]
// Copyright 2019 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "codelab/codelab.h"
#include <base/logging.h>
#include <brillo/flag_helper.h>
#include <brillo/syslog_logging.h>
int main(int argc, char** argv) {
DEFINE_bool(quiet, false, "Suppress console output.");
brillo::FlagHelper::Init(argc, argv, argv[0]);
if (FLAGS_quiet) {
brillo::InitLog(brillo::kLogToSyslog | brillo::kLogToStderrIfTty);
} else {
brillo::InitLog(brillo::kLogToSyslog);
}
LOG(INFO) << "Hello from ChromeOS! Gimme " << codelab::GiveFive();
return 0;
}