blob: affec777798d3c8501a9867671db9a9e16490a43 [file] [log] [blame]
Justin TerAvest49966042019-07-15 09:53:01 -06001// Copyright 2019 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "codelab/codelab.h"
6
7#include <base/logging.h>
8#include <brillo/flag_helper.h>
9#include <brillo/syslog_logging.h>
10
11int main(int argc, char** argv) {
12 DEFINE_bool(quiet, false, "Suppress console output.");
13
14 brillo::FlagHelper::Init(argc, argv, argv[0]);
15 if (FLAGS_quiet) {
16 brillo::InitLog(brillo::kLogToSyslog | brillo::kLogToStderrIfTty);
17 } else {
18 brillo::InitLog(brillo::kLogToSyslog);
19 }
20
21 LOG(INFO) << "Hello from ChromeOS! Gimme " << codelab::GiveFive();
22 return 0;
23}