Justin TerAvest | 4996604 | 2019-07-15 09:53:01 -0600 | [diff] [blame] | 1 | // 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 | |
| 11 | int 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 | } |