Featured resource
2026 Tech Forecast
2026 Tech Forecast

Stay ahead of what’s next in tech with predictions from 1,500+ business leaders, insiders, and Pluralsight Authors.

Get these insights
  • Course

Building Reusable Angular Services: Logging

Learn how to perform logging in Angular applications by creating a set of reusable log publishing classes. A log publishers service replaces console.log() making your logging much more flexible.

Intermediate
1h 50m
(40)

Created by Paul D. Sheriff

Last Updated Apr 13, 2022

Course Thumbnail
  • Course

Building Reusable Angular Services: Logging

Learn how to perform logging in Angular applications by creating a set of reusable log publishing classes. A log publishers service replaces console.log() making your logging much more flexible.

Intermediate
1h 50m
(40)

Created by Paul D. Sheriff

Last Updated Apr 13, 2022

Get started today

Access this course and other top-rated tech content with one of our business plans.

Try this course for free

Access this course and other top-rated tech content with one of our individual plans.

This course is included in the libraries shown below:

  • Core Tech
What you'll learn

Professional programmers know that logging errors and being able to track what is going on within an Angular application is essential. In this course, Building Reusable Angular Services: Logging, you'll learn how to design an Angular service to perform logging more efficiently and with more flexibility than just using console.log(), by creating an extensible Angular service to log any data to a variety of locations. First, you'll explore how to build a simple console logging class, a class to log to local storage, and a class to post log information to a Web API. Additionally, you'll delve into building different types of log entries, such as debug, informational, error, and warnings. Finally, you'll discover how to create a JSON configuration file to control where you log the data. By the end of this course, you'll have a great start on your logging service that can be used in your own applications. This service can replace all your console.log() calls to provide a better, and more flexible approach to logging.

Building Reusable Angular Services: Logging
Intermediate
1h 50m
(40)
Table of contents

About the author
Paul D. Sheriff - Pluralsight course - Building Reusable Angular Services: Logging
Paul D. Sheriff
32 courses 4.5 author rating 3464 ratings

Paul loves teaching and technology, and has been teaching tech and business topics for over 30 years. Paul helps clients develop applications, and instructs them on the best use of technology.

Get started with Pluralsight