# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 1
# self = https://watcher.sour.is/conv/ooflqna
推荐一款纳秒级的C++日志Nanolog**
本文将介绍一款
延迟很低吞吐量很高的日志工具Nanolog,该日志系统较其他常用日志系统延迟低一到两个数量级,吞吐量高一到两个数量级**。

日志在系统中起到非常重要的debug作用,出core后debug离不开日志的帮助。但是一般的日志又比较慢,对于速度有极致追求的系统,开发人员不得不删除或关闭部分甚至全部日志运行系统,但这样又会导致出bug时难以定位。为了更好的解决这一问题。斯坦福大学的大神们开发了一款延迟极低的开源日志工具Nanolog。

Nanolog在低延迟和高吞吐两方面做了几点精妙的改进。 非常值得对低延迟技术有兴趣的朋友进行深入学习**。

1. Nanolog有多快**

C++日志系统有很多开源的项目,如log4clpus、glog、spdlog、boostlog等。相对这些常见的Log库,Nanalog快一到两个数量级。

![](https://pic3.zhimg.com/v2-31c59e48cb5f84043aa398a963e9d60 ... ⌘ Read more