whatisgithub

What is egg-logger-sls?

eggjs/egg-logger-sls — explained in plain English

Analysis updated 2026-08-08 · repo last pushed 2021-03-16

15JavaScriptAudience · ops devopsComplexity · 2/5DormantSetup · moderate

In one sentence

A plugin for Egg.js web apps that automatically sends application logs to Alibaba Cloud's Simple Log Service, giving you a centralized cloud dashboard for searching and monitoring logs across multiple servers.

Mindmap

mindmap
  root((repo))
    What it does
      Sends logs to cloud
      Runs in background
      Captures log entries
    Tech stack
      JavaScript
      Egg.js framework
      Alibaba Cloud SLS
    Use cases
      Centralized error tracking
      Multi-server log search
      Cloud log analysis
    Features
      Custom filters
      Independent cloud log level
      Auto context metadata
    Audience
      Egg.js developers
      Ops teams
      Alibaba Cloud users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Centralize error logs from multiple servers into one Alibaba Cloud dashboard for easier searching.

USE CASE 2

Track user actions and application errors in the cloud without SSHing into individual machines.

USE CASE 3

Send verbose debug logs to the cloud while keeping local file logs limited to errors to save disk space.

USE CASE 4

Filter or modify log data before it leaves your server using a custom function to control what gets uploaded.

What is it built with?

JavaScriptEgg.jsAlibaba Cloud SLS

How does it compare?

eggjs/egg-logger-slsadindazu/fextractoranonymousraid/osint-mapping-tool
Stars151515
LanguageJavaScriptJavaScriptJavaScript
Last pushed2021-03-16
MaintenanceDormant
Setup difficultymoderatehardeasy
Complexity2/51/52/5
Audienceops devopsgeneralresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires an Alibaba Cloud account with SLS configured and valid cloud credentials, plus an existing Egg.js application.

No license information is provided in the repository, so usage terms are unclear.

So what is it?

egg-logger-sls is a plugin for Egg.js applications that automatically sends your application logs to Alibaba Cloud's Simple Log Service (SLS). Instead of logs only being saved to files on your server, this tool ships them to a centralized cloud logging platform where you can more easily search, analyze, and monitor what is happening in your application. Once installed and configured, the plugin runs in the background. Whenever your application code writes a log entry, like recording an error or tracking a user action, the plugin captures that entry and uploads it to your SLS account. You provide your cloud credentials and specify which SLS project and log store to use. From there, it handles the delivery automatically. You can also control which logs get sent: you can disable specific loggers from being uploaded, and you can write a custom filter function to drop certain logs or modify the data before it leaves your server. This is built for teams already using Egg.js as their web framework and Alibaba Cloud for their infrastructure. For example, if you run an e-commerce site and want to centralize error tracking across multiple servers, this plugin lets you send all those errors to one cloud dashboard instead of SSHing into individual machines to read text files. It is particularly useful for teams operating several servers who need a single place to search and analyze their application's behavior. The data sent to the cloud includes useful context automatically: the log's severity level, the message content, the server's IP and hostname, the application name, and which specific logger generated the entry. The plugin also introduces a custom slsLevel setting, letting you control the verbosity of cloud-uploaded logs independently from your local file logs. This means you could save disk space locally by only writing errors to files, while sending more verbose debug information to the cloud for analysis.

Copy-paste prompts

Prompt 1
Help me install and configure egg-logger-sls in my Egg.js app, including where to put my Alibaba Cloud SLS credentials and how to specify my SLS project and log store.
Prompt 2
Write a custom filter function for egg-logger-sls that drops log entries containing sensitive data like passwords or API keys before they are uploaded to Alibaba Cloud SLS.
Prompt 3
Show me how to configure egg-logger-sls so that only error-level logs are written to local files but debug-level logs are sent to the cloud SLS dashboard.
Prompt 4
Explain how to set up egg-logger-sls to disable specific loggers from being uploaded to Alibaba Cloud SLS while keeping others active.
Prompt 5
Set up egg-logger-sls in my Egg.js e-commerce app so that all server error logs across multiple instances are centralized in one Alibaba Cloud SLS log store.

Frequently asked questions

What is egg-logger-sls?

A plugin for Egg.js web apps that automatically sends application logs to Alibaba Cloud's Simple Log Service, giving you a centralized cloud dashboard for searching and monitoring logs across multiple servers.

What language is egg-logger-sls written in?

Mainly JavaScript. The stack also includes JavaScript, Egg.js, Alibaba Cloud SLS.

Is egg-logger-sls actively maintained?

Dormant — no commits in 2+ years (last push 2021-03-16).

What license does egg-logger-sls use?

No license information is provided in the repository, so usage terms are unclear.

How hard is egg-logger-sls to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is egg-logger-sls for?

Mainly ops devops.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.