# logger

Published articles for logger.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Interfaces 101 : Interface Type Assertion Ep. 6

DevFeed: [Interfaces 101 : Interface Type Assertion Ep. 6](<https://devfeed.tech/articles/interfaces-101-interface-type-assertion-ep-6-22218.md>)

Original publisher: [Read original article](<https://www.ardanlabs.com/blog/2023/03/interfaces-101-interface-type-assertions.html>)

Published: 2023-03-07T00:00:00Z

Content type: tutorial

Language: en

Sources: [William Kennedy](<https://devfeed.tech/sources/william-kennedy.md>)

Topics: [interfaces](<https://devfeed.tech/topics/interfaces.md>), [Go Language](<https://devfeed.tech/topics/go-language.md>), [IO](<https://devfeed.tech/topics/io.md>), [Streams](<https://devfeed.tech/topics/streams.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [copy](<https://devfeed.tech/tags/copy.md>), [flush](<https://devfeed.tech/tags/flush.md>), [go](<https://devfeed.tech/tags/go.md>), [golang](<https://devfeed.tech/tags/golang.md>), [interfaces](<https://devfeed.tech/tags/interfaces.md>), [introduction](<https://devfeed.tech/tags/introduction.md>), [io](<https://devfeed.tech/tags/io.md>), [io-interface](<https://devfeed.tech/tags/io-interface.md>), [io-reader](<https://devfeed.tech/tags/io-reader.md>), [io-writer](<https://devfeed.tech/tags/io-writer.md>), [library](<https://devfeed.tech/tags/library.md>), [logger](<https://devfeed.tech/tags/logger.md>), [receiver](<https://devfeed.tech/tags/receiver.md>), [type-alias](<https://devfeed.tech/tags/type-alias.md>), [versatile](<https://devfeed.tech/tags/versatile.md>), [video](<https://devfeed.tech/tags/video.md>)

### AI overview

This video tutorial explains how to use type assertions and Go interfaces. It demonstrates io.Reader and io.Writer, io.Copy, and interface design while building a logging library that moves data from memory to stable storage.

### Source excerpt

Introduction In episode 5, Miki wrote a function that counted the number of lines in a file with interfaces. The first thing his function did was to open a file with Go's os.Open function. Miki chose this method because the variable returned by said function implements the io.Reader interface which is crucial for the next step. The remaining parts of this function consisted of a primitive type alias that satisfied the io.Writer interface and tracked the number of lines by increasing the Write method's receiver value. To put the process in motion, Miki will invoke function io.Copy to trigger his type alias' Write method and in essence, count the number of lines in the file.

## Tracing main thread messages

DevFeed: [Tracing main thread messages](<https://devfeed.tech/articles/tracing-main-thread-messages-25631.md>)

Original publisher: [Read original article](<https://blog.p-y.wtf/tracing-main-thread-messages>)

Author: Pierre-Yves Ricau

Published: 2022-01-27T19:53:56Z

Content type: tutorial

Language: en

Sources: [Py's blog](<https://devfeed.tech/sources/py-s-blog.md>)

Topics: [tracing](<https://devfeed.tech/topics/tracing.md>), [Android](<https://devfeed.tech/topics/android.md>), [Logging](<https://devfeed.tech/topics/logging.md>), [Development](<https://devfeed.tech/topics/development.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-app-development](<https://devfeed.tech/tags/android-app-development.md>), [logger](<https://devfeed.tech/tags/logger.md>), [main-thread](<https://devfeed.tech/tags/main-thread.md>), [perfetto](<https://devfeed.tech/tags/perfetto.md>), [performance](<https://devfeed.tech/tags/performance.md>), [tracing](<https://devfeed.tech/tags/tracing.md>)

### AI overview

This tutorial explains how to inspect Android main-thread activity in Perfetto traces. It uses the seldom-used Looper.setMessageLogging() API to log message dispatches and adds trace sections for each main-thread message with the AndroidX tracing library.

### Source excerpt

👋 Hi, this is P.Y., I work as an Android Engineer at Block, the non-fungible company formerly known as Square. I spend a lot of time focusing on performance and try to share my experience with deep-d

## Creating a Custom Logger for Craft CMS

DevFeed: [Creating a Custom Logger for Craft CMS](<https://devfeed.tech/articles/creating-a-custom-logger-for-craft-cms-31252.md>)

Original publisher: [Read original article](<https://nystudio107.com/blog/creating-a-custom-logger-for-craft-cms>)

Author: andrew@nystudio107.com (Andrew Welch)

Published: 2019-07-21T17:52:00Z

Content type: tutorial

Language: en

Sources: [nystudio107 | Articles on modern web development.](<https://devfeed.tech/sources/nystudio107-articles-on-modern-web-development.md>)

Topics: [Content Management System](<https://devfeed.tech/topics/cms.md>), [Logging](<https://devfeed.tech/topics/logging.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [Software as a service](<https://devfeed.tech/topics/saas.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [built-in](<https://devfeed.tech/tags/built-in.md>), [cms](<https://devfeed.tech/tags/cms.md>), [code](<https://devfeed.tech/tags/code.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [craft](<https://devfeed.tech/tags/craft.md>), [custom](<https://devfeed.tech/tags/custom.md>), [dependency-injection](<https://devfeed.tech/tags/dependency-injection.md>), [insights](<https://devfeed.tech/tags/insights.md>), [logger](<https://devfeed.tech/tags/logger.md>), [logging](<https://devfeed.tech/tags/logging.md>), [logs](<https://devfeed.tech/tags/logs.md>), [need](<https://devfeed.tech/tags/need.md>), [needs](<https://devfeed.tech/tags/needs.md>), [saas](<https://devfeed.tech/tags/saas.md>), [send](<https://devfeed.tech/tags/send.md>), [service](<https://devfeed.tech/tags/service.md>), [sufficient](<https://devfeed.tech/tags/sufficient.md>), [third-party](<https://devfeed.tech/tags/third-party.md>), [want](<https://devfeed.tech/tags/want.md>)

### AI overview

A tutorial on customizing Craft CMS logging through Yii-based configuration and code, including changing built-in behavior and sending logs to third-party aggregation services such as PaperTrail or Sentry.

### Source excerpt

The built-in Craft CMS logging system is sufficient for most needs, but what if you need custom logging, or want to send your logs to a third-party service?

## logzero - Simplified logging for Python 2 and 3

DevFeed: [logzero - Simplified logging for Python 2 and 3](<https://devfeed.tech/articles/logzero-simplified-logging-for-python-2-and-3-31848.md>)

Original publisher: [Read original article](<https://www.metachris.dev/2017/06/logzero-simplified-logging-for-python-2-and-3/>)

Author: Chris Hager

Published: 2017-06-29T00:00:00Z

Content type: release

Language: en

Sources: [Chris Hager](<https://devfeed.tech/sources/chris-hager.md>)

Topics: [Logging](<https://devfeed.tech/topics/logging.md>), [Python](<https://devfeed.tech/topics/python.md>), [Boilerplate](<https://devfeed.tech/topics/boilerplate.md>), [Documentation](<https://devfeed.tech/topics/documentation.md>)

Tags: [boilerplate](<https://devfeed.tech/tags/boilerplate.md>), [file](<https://devfeed.tech/tags/file.md>), [logger](<https://devfeed.tech/tags/logger.md>), [logging](<https://devfeed.tech/tags/logging.md>), [python](<https://devfeed.tech/tags/python.md>), [python-dependencies](<https://devfeed.tech/tags/python-dependencies.md>)

### AI overview

The article announces logzero, a small Python package for simplified logging in Python 2 and 3. It describes console and file logging, formatting, encoding handling, multiple loggers, rotating log files, installation, and documentation.

### Source excerpt

I've just published logzero, a small Python package which simplifies logging with Python 2 and 3. It is easy to use and robust, and heavily inspired by the Tornado web framework. I've recently released python-boilerplate.com which included this module as a file, and people have been asking for it to be published as a standalone package. Finally I've found some time to do it, and here it is! https://logzero.readthedocs.io https://github.com/metachris/logzero logzero is a simple and effective logging module for Python 2 and 3:

## clogger(1) -- a campfire logger

DevFeed: [clogger(1) -- a campfire logger](<https://devfeed.tech/articles/clogger-1-a-campfire-logger-30037.md>)

Original publisher: [Read original article](<http://www.netmeister.org/blog/clogger.html>)

Published: 2013-11-15T18:24:12Z

Content type: article

Language: en

Sources: [Signs of Triviality](<https://devfeed.tech/sources/signs-of-triviality.md>)

Topics: [Logging](<https://devfeed.tech/topics/logging.md>), [Messaging](<https://devfeed.tech/topics/messaging.md>)

Tags: [command](<https://devfeed.tech/tags/command.md>), [interface](<https://devfeed.tech/tags/interface.md>), [logger](<https://devfeed.tech/tags/logger.md>), [messages](<https://devfeed.tech/tags/messages.md>), [simple](<https://devfeed.tech/tags/simple.md>), [syslog](<https://devfeed.tech/tags/syslog.md>)

### AI overview

clogger(1) is a simple logging and messaging interface analogous to the common logger(1) command. It sends messages to Campfire instead of syslog(3).

### Source excerpt

clogger(1) implements a simple logging/messaging interface analogous to the common logger(1) command. However, instead of logging messages to syslog(3), clogger(1) will write the message to Campfire.