登录 注册

scribe

去点 Star
数据分析与数据处理内容创作与媒体工具AI 模型与开发框架 logbacklogginglogging-frameworklogging-libraryscalascribe
554
Stars
43
Forks
5
Watchers
31
Open Issues
MIT
许可证
Scala
语言
2016-01-26
创建时间
2026-11-09
最近更新

项目能做什么

Scribe 是一款专为 Scala 生态从零构建的超高性能日志库。它解决了传统日志依赖 Java 框架封装所带来的性能损耗及跨平台受限问题。核心亮点在于无需配置文件、支持纯代码化配置,利用宏在编译期深度优化性能,且原生支持 JVM、Scala.js 及 Scala Native 跨平台运行,同时兼容 SLF4J。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# scribe

[![CI](https://github.com/outr/scribe/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/outr/scribe/actions/workflows/ci.yml)
[![Codacy Grade](https://app.codacy.com/project/badge/Grade/f333f6b110974985b2d1dbea39665e9e)](https://www.codacy.com/gh/outr/scribe/dashboard?utm_source=github.com&utm_medium=referral&utm_content=outr/scribe&utm_campaign=Badge_Grade)
[![Codacy Coverage](https://app.codacy.com/project/badge/Coverage/f333f6b110974985b2d1dbea39665e9e)](https://www.codacy.com/gh/outr/scribe/dashboard?utm_source=github.com&utm_medium=referral&utm_content=outr/scribe&utm_campaign=Badge_Coverage)
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/outr/scribe)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.outr/scribe_2.13/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.outr/scribe_2.13)
[![Latest version](https://index.scala-lang.org/outr/scribe/scribe/latest.svg)](https://index.scala-lang.org/outr/scribe)
[![Javadocs](https://javadoc.io/badge/com.outr/scribe_2.13.svg)](https://javadoc.io/doc/com.outr/scribe_2.13)

Scribe is a completely different way of thinking about logging. Instead of wrapping around existing logging frameworks
and bearing their performance and design flaws, Scribe is built from the ground up to provide fast and effective logging
in Scala, Scala.js, and Scala Native without the need of configuration files or additional dependencies. All management
of logging can be handled programmatically (of course, classic logging configuration can be utilized as well if desired)
in Scala itself, giving the developer the freedom to use whatever configuration framework, if any, they should choose to
use.

## Availability

Scribe is available on the JVM, Scala.js, and ScalaNative with cross-compiling for Scala 2.12, 2.13, and 3

## Quick Start

For people that want to skip the explanations and see it action, this is the place to start!

### Dependency Configuration

```scala
libraryDependencies += "com.outr" %% "scribe" % "3.19.0"
```

For Cross-Platform projects (JVM, JS, and/or Native):

```scala
libraryDependencies += "com.outr" %%% "scribe" % "3.19.0"
```

Or, if you want interoperability with SLF4J (to allow better interoperability with existing libraries using other loggers):

```scala
libraryDependencies += "com.outr" %% "scribe-slf4j" % "3.19.0"
```

### Usage

```scala
scribe.info("Yes, it's that simple!")
```

### SBT Tip
Using the default logger in Scribe supports auto-line wrapping, but in SBT, the `[info]` prefixes cause that to get
messed up. It's recommended to set:
```sbt
outputStrategy := Some(StdoutOutput)
```
This will disable the `[info]` and `[error]` prefixes so logging looks correct when running your application within SBT.

## Why Another Logging Framework

Yes, we know there are too many Java logging frameworks to count, and a large number of decent logging frameworks in
Scala, so why did we write yet another logg
阅读完整原文

项目深度分析 AI 生成

Scribe 企业级安全与合规扩展包 (Scribe Enterprise Audit)

产品构想针对金融/医疗等合规敏感业务,基于 Scribe 宏与编程式拦截机制,开发自动 PII/敏感字段脱敏、结构化安全审计日志输出插件(推测)。
核心功能零运行时开销的敏感数据自动遮蔽(借助编译期宏/类型类)、格式化合规审计日志结构(JSON/Syslog/CEF)、合规策略动态热加载。
目标用户金融科技、医疗、电商等强合规要求的 Scala 企业级研发团队。
难度/周期中等 · 2 - 3 个月 · 成本:开发与合规测试环境成本,极低服务器开销
收费模式商业授权/闭源扩展插件订阅制或单次企业授权 License。
竞争风险企业往往直接在日志收集端(如 Logstash/Fluentd/Datadog)做脱敏,客户端插件需求可能被管道层替代。
依据 AI推测

Scribe 现代化可观测性与云原生集成器 (Scribe OpenTelemetry & Cloud Connector)

产品构想打造深度打通 OpenTelemetry Tracing、Datadog、AWS CloudWatch、Grafana Loki 的开箱即用商用级输出端(Writer),支持分布式追踪上下文透明传播。
核心功能W3C TraceContext 与 MDC 自动穿透、高性能本地批量聚合异步推送、网络重试与死信兜底队列、与 OpenTelemetry SDK 零样板代码接入。
目标用户需要将 Scala / Scala.js 微服务平滑迁移至云原生 APM 系统的架构师与 SRE。
难度/周期中等 · 1 - 2 个月 · 成本:低(基础云服务沙盒与 CI/CD 测试费用)
收费模式核心开源 + 针对云端聚合推流的高级插件收费(Open-core 模式)或咨询整合服务。
竞争风险SLF4J/Logback 现成生态适配器极其丰富,用户可能直接回退至兼容层使用成熟开源方案。
依据 数据支持的判断

Scala.js / 前端客户端异常与日志云监控服务 (Scribe Web Telemetry SDK + SaaS)

产品构想利用 Scribe 原生支持 Scala.js 的独特优势,构建针对 Full-stack Scala 应用的前端崩溃监控与远程日志回传微 SaaS。
核心功能Scala.js 源码映射 SourceMap 解码、客户端日志按批次压缩上传、离线缓存与弱网重传、前端异常监控看板。
目标用户使用 Scala.js 构建单页应用或客户端、且希望前后端日志栈统一的团队。
难度/周期高 · 3 - 5 个月 · 成本:中等(需维护 SaaS 服务端接收集群与时序存储)
收费模式按月订阅制 SaaS(按每月上报事件量阶梯收费)。
竞争风险Sentry、Datadog 等成熟 APM 产品壁垒极高,专门针对 Scala.js 的受众市场较窄。
依据 AI推测
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

相似项目数据正在完善中,暂不展示(避免误导)

项目优势与风险

技术成熟度创建于 2016-01-26,近 30 天仍在推送,发布过 53 个 Release
社区活跃Star 554 / Fork 43 / Issue 31(数据支持,可自行核实)
许可证MIT
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。