loggo icon indicating copy to clipboard operation
loggo copied to clipboard

Writer: Loggo emoji writer

Open SimonRichardson opened this issue 3 years ago • 9 comments

The following introduces an emoji log writer. For fun and profit.

Screenshot from 2021-07-02 13-01-15

SimonRichardson avatar Jul 02 '21 12:07 SimonRichardson

This is fantastic!

erik78se avatar Jul 02 '21 12:07 erik78se

How can I test this?I have a charm that already logs with this internally and I would love to be able to use this also in conjunction with stuff like "juju debug-log". The visibility for specific log events helps alot to discover when stuff goes sideways or even just info.

erik78se avatar Jul 02 '21 14:07 erik78se

I think that "juju debug-log" will have a hard time here perhaps, thats one thing I would like to test etc.

erik78se avatar Jul 02 '21 14:07 erik78se

@erik78se we'll just ensure that it gets written, won't take me long... will get it done Monday :dancers:

SimonRichardson avatar Jul 02 '21 14:07 SimonRichardson

When can I use this ?

erik78se avatar Aug 10 '21 09:08 erik78se

I need to come back around and merge this into Juju.

SimonRichardson avatar Aug 10 '21 10:08 SimonRichardson

Cool, how do I add these icons myself in my logs if I'd like to lets say add a charm-custom emoji?

logger.info( ????? )

On Tue, Aug 10, 2021 at 12:25 PM Simon Richardson @.***> wrote:

I need to come back around and merge this into Juju.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/juju/loggo/pull/41#issuecomment-895913869, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGPVK7EN7LZQ3ESKMY3D7LT4D5CNANCNFSM47WTIYAA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

erik78se avatar Aug 10 '21 10:08 erik78se

your charm can add whatever characters it wants to its log lines. Something like:

log.warning("\uemoji my message")

for whatever the codes are for the emojis you want.

On Tue, Aug 10, 2021, 06:49 Erik Lönroth @.***> wrote:

Cool, how do I add these icons myself in my logs if I'd like to lets say add a charm-custom emoji?

logger.info( ????? )

On Tue, Aug 10, 2021 at 12:25 PM Simon Richardson @.***> wrote:

I need to come back around and merge this into Juju.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/juju/loggo/pull/41#issuecomment-895913869, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAGPVK7EN7LZQ3ESKMY3D7LT4D5CNANCNFSM47WTIYAA

. Triage notifications on the go with GitHub Mobile for iOS < https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android < https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/juju/loggo/pull/41#issuecomment-895927429, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABRQ7ODXDGJTQYVDVRHOHDT4D72PANCNFSM47WTIYAA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

jameinel avatar Aug 10 '21 11:08 jameinel

Right, I'll try it out =)

On Tue, Aug 10, 2021 at 1:23 PM John Arbash Meinel @.***> wrote:

your charm can add whatever characters it wants to its log lines. Something like:

log.warning("\uemoji my message")

for whatever the codes are for the emojis you want.

On Tue, Aug 10, 2021, 06:49 Erik Lönroth @.***> wrote:

Cool, how do I add these icons myself in my logs if I'd like to lets say add a charm-custom emoji?

logger.info( ????? )

On Tue, Aug 10, 2021 at 12:25 PM Simon Richardson @.***> wrote:

I need to come back around and merge this into Juju.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/juju/loggo/pull/41#issuecomment-895913869, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AAGPVK7EN7LZQ3ESKMY3D7LT4D5CNANCNFSM47WTIYAA

. Triage notifications on the go with GitHub Mobile for iOS <

https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android <

https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/juju/loggo/pull/41#issuecomment-895927429, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AABRQ7ODXDGJTQYVDVRHOHDT4D72PANCNFSM47WTIYAA

. Triage notifications on the go with GitHub Mobile for iOS < https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android < https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email

.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/juju/loggo/pull/41#issuecomment-895948649, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGPVK7POXNPTSBC6JIHSPDT4ED45ANCNFSM47WTIYAA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

erik78se avatar Aug 10 '21 11:08 erik78se