SylviaBABY commented on a change in pull request #882:
URL: https://github.com/apache/apisix-website/pull/882#discussion_r807720158



##########
File path: website/blog/2022/02/16/file-logger.md
##########
@@ -0,0 +1,363 @@
+---
+title: "How did a Beginner Build an Apache APISIX Plugin from 0 to 1"
+authors:
+  - name: "Qi Guo"
+    title: "Author"
+    url: "https://github.com/guoqqqi";
+    image_url: "https://avatars.githubusercontent.com/u/72343596?v=4";
+  - name: "Yilin Zeng"
+    title: "Technical Writer"
+    url: "https://github.com/yzeng25";
+    image_url: "https://avatars.githubusercontent.com/u/36651058?v=4";
+keywords: 
+- Apache APISIX
+- Logging
+- Ecosystem
+- Developer
+- Guide
+description: This article documents the process of developing the 
`file-logger` plugin by a front-end engineer with no back-end experience.
+tags: [Technology,Logging]
+---
+
+> This article documents the process of developing the `file-logger` plugin by 
a front-end engineer with no back-end experience.
+
+<!--truncate-->
+
+Over the past few months, community users have added many plugins to Apache 
APISIX, enriching the Apache APISIX ecosystem. From the user's point of view, 
the emergence of more diverse plugins is certainly a good thing, as they 
fulfill more of the user's expectations for a gateway that is "one-stop" and 
"multi-functional" processor on top of perfecting the high performance and low 
latency of Apache APISIX.
+
+None of the articles on the Apache APISIX blog seem to go into detail about 
the process of developing plugins. So let's take a look at the process from the 
perspective of a plugin developer and see how a plugin is born!
+
+This article documents the process of developing the `file-logger` plugin by 
**a front-end engineer with no back-end experience**. Before digging into the 
details of the implementation process, we will briefly introduce the 
functionality of `file-logger`.
+
+## Introduction of file-logger plugin
+
+`file-logger` supports generating custom log formats using Apache APISIX 
plugin metadata. Users can append request and response data in JSON format to 
log files via the `file-logger` plugin, or push the log data stream to a 
specified location.
+
+Imagine this: when monitoring the access log of a route, we not only care 
about the value of certain request and response data, but also want to write 
the log data to a specified file. This is where the `file-logger` plugin can be 
used to help achieve these goals.
+
+![how it 
works](https://static.apiseven.com/202108/1644996258131-a0e32942-dcc5-4129-873f-0a7551532e77.png)
+
+We can use `file-logger` to write log data to a specific log file to simplify 
the process of monitoring and debugging.
+
+## How to implement a plugin?
+
+After introducing the features of file-logger, you will have a better 
understanding of this plugin. The following is a detailed explanation of how I, 
a front-end developer with no server-side experience, develop the plugin for 
Apache APISIX and add the corresponding tests for it.
+
+### Confirm the name and priority of the plug-in

Review comment:
       之前泽平说技术文章里一般都是 plugin,比较少出现 plug-in,那就以这个为准吧




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to