logging: update initialization code to use the new LogConfig logic
[folly.git] / folly / experimental / logging / example / main.cpp
index be4ba77a744922129613663aee4651008dc7bd08..72608df1404039817cdf1212d9c05df5bc42e94d 100644 (file)
@@ -38,7 +38,7 @@ int main(int argc, char* argv[]) {
 
   // Call folly::init() and then initialize log levels and handlers
   folly::init(&argc, &argv);
-  initLoggingGlogStyle(FLAGS_logging, LogLevel::INFO);
+  folly::initLogging(FLAGS_logging);
 
   // All XLOG() statements in this file will log to the category
   // folly.experimental.logging.example.main